in reply to Re: using a variable as a filehandle
in thread using a variable as a filehandle
It doesn't die. (i verified there is data in the variable) and it never prints "in while" so it appears <> is finding no lines. any ideas thanks againopen (RF,"<:raw:scalar", $$record{data}) or die "Couldn't open memory + file: $!"; while(my $line = <RF>){ print "\n in while \n"; } close(RF);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: using a variable as a filehandle
by diotalevi (Canon) on Nov 01, 2004 at 19:09 UTC |