bhall has asked for the wisdom of the Perl Monks concerning the following question:
open (OUT, "data.txt") || die "Can't open the data file"; foreach $i ($data[0], $data[1]){ chomp($i); ($short,$place) = split(/\|/,$i); %stuff = ( '$short' => '$place', ); close(OUT); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: novice with hash/data file question
by chromatic (Archbishop) on Sep 02, 2008 at 08:25 UTC | |
by bhall (Initiate) on Sep 02, 2008 at 08:41 UTC | |
by leonidlm (Pilgrim) on Sep 02, 2008 at 11:39 UTC | |
by johngg (Canon) on Sep 02, 2008 at 14:12 UTC | |
by jwkrahn (Abbot) on Sep 02, 2008 at 12:51 UTC | |
by llancet (Friar) on Sep 02, 2008 at 10:52 UTC | |
|
Re: noob with hash/data file question
by moritz (Cardinal) on Sep 02, 2008 at 08:19 UTC | |
by bhall (Initiate) on Sep 02, 2008 at 08:43 UTC | |
|
Re: noob with hash/data file question
by ikegami (Patriarch) on Sep 02, 2008 at 08:18 UTC |