in reply to Subroutine question
ie in the main loop: $stuff_to_do[0] = "/path/to/script -e;;arguments;;file"; ... ... foreach $line (@stuff_to_do) { ($script,$arg,$file) = split(/;;/,$line); &file_processing($script,$arg,$file); } ... then your subroutine would be: sub file_processing { my ($script, $arg, $file) = @_; .... } I think that's what you're trying to do, but not sure.. -brad..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Subroutine question
by BlaisePascal (Monk) on Sep 18, 2000 at 22:14 UTC |