help with file reading

2002-10-07 Thread Pravesh Biyani
Hi can i pass the file variable in the function.. for eg. $lofile = " somefile"; and call the function file_read(lofile) ; where function is : sub file_read { while (<$_[0]>) blah..blah.. } Pravesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: help with file reading

2002-10-07 Thread Daryl J. Hoyt
; mailto:[EMAIL PROTECTED]> -Original Message- From: Pravesh Biyani [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 8:55 AM To: [EMAIL PROTECTED] Subject: help with file reading Hi can i pass the file variable in the function.. for eg. $lofile = " somefile&quo

Re: help with file reading

2002-10-07 Thread Dharmender Rai
Read the Hashed Part () --- Pravesh Biyani <[EMAIL PROTECTED]> wrote: > Hi > can i pass the file variable in the function.. > > for eg. > > $lofile = " somefile"; > > and call the function > ## The way you have defined file_read ## you should pass the handle of the file ## by opening it

RE: help with file reading

2002-10-07 Thread Dharmender Rai
> Software Engineer > Geodesic Systems > 312-832-2010 > < http://www.geodesic.com> > < mailto:[EMAIL PROTECTED]> > > > > > -Original Message----- > From: Pravesh Biyani [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 8:55 AM >

Re: help with file reading

2002-10-07 Thread Michael Fowler
On Mon, Oct 07, 2002 at 03:54:53PM +0200, Pravesh Biyani wrote: > $lofile = " somefile"; > > and call the function > > file_read(lofile) ; > > where function is : > > > sub file_read > { > > while (<$_[0]>) > > blah..blah.. > > } It's not entirely clear from your code what you intended t