M
Michele Dondi
I have a minor doubt about predefined variables related to pattern
matching: in particular is it safe to do something like this?
if ( /\{([\w:]+)\}/ ) {
do_something($`, $', split /:/, $1);
}
I mean: are $`, $' and $1 those coming from the
*first* pattern matching in all cases?
Michele
--
#!/usr/bin/perl -lp
BEGIN{*ARGV=do{open $_,q,<,,\$/;$_}}s z^z seek DATA,11,$[;($,
=ucfirst<DATA>)=~s x .*x q^~ZEX69l^^q,^2$;][@,xe.$, zex,s e1e
q 1~BEER XX1^q~4761rA67thb ~eex ,s aba m,P..,,substr$&,$.,age
__END__
matching: in particular is it safe to do something like this?
if ( /\{([\w:]+)\}/ ) {
do_something($`, $', split /:/, $1);
}
I mean: are $`, $' and $1 those coming from the
*first* pattern matching in all cases?
Michele
--
#!/usr/bin/perl -lp
BEGIN{*ARGV=do{open $_,q,<,,\$/;$_}}s z^z seek DATA,11,$[;($,
=ucfirst<DATA>)=~s x .*x q^~ZEX69l^^q,^2$;][@,xe.$, zex,s e1e
q 1~BEER XX1^q~4761rA67thb ~eex ,s aba m,P..,,substr$&,$.,age
__END__