Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Hash problem

by Corion (Pope)
on Feb 04, 2006 at 00:00 UTC ( #527863=note: print w/ replies, xml ) Need Help??


in reply to Hash problem

You are not checking if your match is successfull. Only a successfull match sets $1 (and the other variables).

foreach my $try (@array2) { $try =~ /^(.*),"(.*)",(.*),(.*),"(.*)"/s or die "Malformed input data: >>$try<<"; ... };

Also consider putting the code you post into <code>...</code> tags, so it can be downloaded and it renders nicely.


Comment on Re: Hash problem
Select or Download Code
Re^2: Hash problem
by Gnat53 (Novice) on Feb 04, 2006 at 01:21 UTC
    I tried this -- and it didn't die.... Thanks for the tip about <code>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://527863]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-08-31 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls