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.
In reply to Re: undef a variable for a loop
by ikegami
in thread undef a variable for a loop
by csiepka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |