in reply to pattern matching
Is better written as either:push my @users, $line;
ORpush my(@users), $line;
But your error is being caused because split using the default value in $_ instead of $line. Instead try:my @users; push @users, $line;
split(/ /,$line)
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: pattern matching
by runrig (Abbot) on Sep 06, 2001 at 22:39 UTC | |
by blakem (Monsignor) on Sep 06, 2001 at 22:52 UTC | |
|
Re: Re: pattern matching
by softworkz (Monk) on Sep 06, 2001 at 22:18 UTC |