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:
; 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
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
> 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
>
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