D
debraj
Hi All,
I am new to perl
and am wondering why the following is not running :
$_ = "The brown fox jumps over the lazy dog";
/the (\S+)(?{ $color = $^N }) (\S+)(?{ $animal = $^N })/i;
print "color = $color, animal = $animal\n";
its giving no output and if I use it in my programs it gives
Sequence (?{...) not recognized at.....
I took it from this link :
http://www.perldoc.com/perl5.8.0/pod/perlre.html
Thanx in advance,
Mark
I am new to perl
and am wondering why the following is not running :
$_ = "The brown fox jumps over the lazy dog";
/the (\S+)(?{ $color = $^N }) (\S+)(?{ $animal = $^N })/i;
print "color = $color, animal = $animal\n";
its giving no output and if I use it in my programs it gives
Sequence (?{...) not recognized at.....
I took it from this link :
http://www.perldoc.com/perl5.8.0/pod/perlre.html
Thanx in advance,
Mark