#! perl -w
$/ =
"/n";
use Data::Dumper;
#usage of non capturing, (more powerful split)
___FCKpd___0
=
'12a34b5';
print "string = ".
___FCKpd___0
.
"/n";
@num =
split /(a|b)/;
print "capturing/n";
print Dumper(
/@num);
print "/n";
@num =
split /(?:a|b)/;
print "non capturing/n";
print Dumper(
/@num);
转载请注明原文地址: https://ibbs.8miu.com/read-2932.html