go ahead... be a heretic | |
PerlMonks |
Re: hash problemby muntfish (Chaplain) |
on Jun 08, 2005 at 08:53 UTC ( [id://464595]=note: print w/replies, xml ) | Need Help?? |
It's not necessarily true that it is "unable to perform the last line of code". The code after the or will be run if the results of the previous code was 0, empty string, or undefined. So if $names{1} is any of those things, your die will be called. Is that die in the right place anyway? Looks like it should be after your open:
It's more common to use CAPS for file handles, by the way. Hope this helps - if not please post a specific example of your input to illustrate what's going on. s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&
In Section
Seekers of Perl Wisdom
|
|