in reply to undef a variable for a loop
I don't see why you have any problems. Cleaned up:
for my $exch (@exch) { for my $i (0 .. $#completefile) { if (my ($su_adapter, $su_date) = $completefile[$i] =~ /.../) { print $su_adapter, $su_date; } } }
Or is the print outside of the if? That wouldn't make any sense.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: undef a variable for a loop
by csiepka (Initiate) on May 15, 2009 at 18:41 UTC | |
by ikegami (Patriarch) on May 15, 2009 at 18:53 UTC | |
by kennethk (Abbot) on May 15, 2009 at 18:55 UTC | |
by ikegami (Patriarch) on May 15, 2009 at 19:00 UTC | |
by kennethk (Abbot) on May 15, 2009 at 19:28 UTC | |
by ikegami (Patriarch) on May 15, 2009 at 19:34 UTC | |
| |
by csiepka (Initiate) on May 15, 2009 at 21:33 UTC |