Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re^3: regex issueby CountZero (Bishop) |
on Mar 24, 2004 at 22:04 UTC ( [id://339564]=note: print w/replies, xml ) | Need Help?? |
No, no, that's cheating. You cannot predeclare my ($A,$B) as you are not supposed to know what's in the data-file. It could be any variable name and any value. However, the eval suggestion is a good one. How about:
As can be expected the lexical declaration does not survive outside of the eval though :-( CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In Section
Seekers of Perl Wisdom
|
|