debraj <> wrote:
> I am new to perl
You should use the docs that _came with_ your version of perl,
else what you see may not work with the version that you
actually have available to you.
> /the (\S+)(?{ $color = $^N }) (\S+)(?{ $animal = $^N })/i;
> Sequence (?{...) not recognized at.....
>
> I took it from this link :
>
> http://www.perldoc.com/perl5.8.0/pod/perlre.html
^^^^^
^^^^^
Do you _have_ perl version 5.8.0?
If you use the docs that came with your perl, then you will see
only those features that you can use with your perl.
--
Tad McClellan SGML consulting
Perl programming
Fort Worth, Texas