Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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.

Replies are listed 'Best First'.
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?
[shmem]: ...for espresso
[LanX]: due coretti, per favore! ;-)
[shmem]: grappa, ginebra o amaretto?
[shmem]: LanX: tried strange stuff wrt autocomplete. No luck :(
[erix]: sambuca

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-03-28 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (330 votes). Check out past polls.