Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm simply trying to split it, but I'm getting a funny error:Me|http://myURL.com|Me@myURL.com|147|Hi,Guys!|Monday, July 28th 2003 1 +1:12PM
I've done this kind of split before with no problems, so I'm not sure where I've gone wrong. I'm on Windows with Active state perl 5.6.1Use of implicit split to @_ is deprecated at \perl.pl line 7. Use of uninitialized value in pattern match (m//) at perl.pl line 7, < +ALL> line 173. Died at \perl.pl line 7, <ALL> line 173.
Thanksuse strict; use warnings; open(ALL,"all2.txt") || die $!; for (<ALL>){ my($name,$url,$email,$id,$comment,$date) =~ split(/\|/,$_) || die $!; print $url; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: spliting problems on $_ ?
by pzbagel (Chaplain) on Nov 05, 2003 at 18:20 UTC | |
|
Re: spliting problems on $_ ?
by duct_tape (Hermit) on Nov 05, 2003 at 18:20 UTC | |
|
Re: spliting problems on $_ ?
by TomDLux (Vicar) on Nov 05, 2003 at 19:57 UTC | |
|
Re: spliting problems on $_ ?
by Anonymous Monk on Nov 05, 2003 at 18:27 UTC |