JayBee has asked for the wisdom of the Perl Monks concerning the following question:
open (FILE, "<$item") or nonexist(); @file = <FILE>; close (FILE); into_table($file[2], $file[0], $file[3], $file[9]);
The one below is what I am trying to get working but so far no luck.
Note: There are 3 comments by the same person, split by \t::\t and each is stored in a seperate file.open (FILE, "<$item" ) or die "Not opening file: $!"; while (<FILE>) { ($uname, $categ, $title, $locat, $desc, $ship, $paym, $pic, $price, $itnum)=split /\t::\t/;
Thanks in advance...JayBee
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split a delimited file
by jweed (Chaplain) on Feb 08, 2004 at 02:36 UTC | |
by JayBee (Scribe) on Feb 08, 2004 at 03:14 UTC | |
by jweed (Chaplain) on Feb 08, 2004 at 04:45 UTC | |
by ysth (Canon) on Feb 09, 2004 at 04:06 UTC | |
|
Re: split a delimited file
by Abigail-II (Bishop) on Feb 08, 2004 at 02:30 UTC |