Re: Passing file name /filehandle as argument to a subroutine...

2004-03-27 Thread R. Joseph Newton
urvashi mishra wrote: hi; i am trying to take input from multiple files Various I/P files are specified at command line... What is an I/P file? Do you mean an input file? Can anyone tell me how to pass the file name to a routine that opens it for parsing the same function is

Re: Passing file name /filehandle as argument to a subroutine...

2004-03-27 Thread R. Joseph Newton
R. Joseph Newton wrote: Better not to use the newline at the end. You get more information if you just: open(MIBFH,$file) or die Error opening the $file$!; Should be: open(MIBFH,$file) or die Error opening the $file: $!; Sorry, Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Passing file name /filehandle as argument to a subroutine...

2004-03-25 Thread John W. Krahn
Urvashi Mishra wrote: hi; Hello, i am trying to take input from multiple files Various I/P files are specified at command line... Can anyone tell me how to pass the file name to a routine that opens it for parsing the same function is to be called for all the I/P files...

Passing file name /filehandle as argument to a subroutine...

2004-03-23 Thread urvashi mishra
hi; i am trying to take input from multiple files Various I/P files are specified at command line... Can anyone tell me how to pass the file name to a routine that opens it for parsing the same function is to be called for all the I/P files... Code is: foreach my $file (@ARGV) {

RE: Passing file name /filehandle as argument to a subroutine...

2004-03-23 Thread Charles K. Clarkson
urvashi mishra [EMAIL PROTECTED] wrote: : : i am trying to take input from multiple files : Various I/P files are specified at command line... : : Can anyone tell me how to pass the file name to a : routine that opens it for parsing : : the same function is to be called for all the