- 论坛徽章:
- 13
|
本帖最后由 bikong0411 于 2015-07-23 11:18 编辑
回复 20# MMMIX - cat 1.pl
- $str='02/07/2015 * L 2014:0306.1 [RHSA-2014:0159-01] Important: kernel
- security and bug fix update';
- print split(/[][]/, $str)[1];
- $perl 1.pl
- syntax error at 1.pl line 4, near ")["
- Execution of 1.pl aborted due to compilation errors.
- $ perl -v
- This is perl 5, version 18, subversion 2 (v5.18.2) built for darwin-thread-multi-2level
- (with 2 registered patches, see perl -V for more detail)
- Copyright 1987-2013, Larry Wall
- Perl may be copied only under the terms of either the Artistic License or the
- GNU General Public License, which may be found in the Perl 5 source kit.
- Complete documentation for Perl, including FAQ lists, should be found on
- this system using "man perl" or "perldoc perl". If you have access to the
- Internet, point your browser at http://www.perl.org/, the Perl Home Page.
复制代码 |
|