in reply to unitialized value error in pattern matching script
If you're parsing, a regex should be your last resort. You should have at least considered the following options first:my $i = 0; while (my ($args1, $args2) = split('.', $_myfile[$i++])) { print "$args2\n"; }
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: pattern matching
by gellyfish (Monsignor) on Mar 29, 2002 at 15:02 UTC |