[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: print $fh; how is this supposed to work?
Jeff Pinyan writes:
>
> The 5.005_02 docs on print() lead me to believe that:
>
> $fh = \*FH;
> print $fh;
>
> should print $_ to the filehandle referenced in $fh. But it prints $fh
> instead. Is this expected?
Do you want
$fh = 12;
print $fh;
print to filehandle \*12 ? ;-) [ I think this is how perl4 worked, BTW. ]
Hope this helps,
Ilya
- Follow-Ups from:
-
Jeff Pinyan <jeffp@crusoe.net>
- References to:
-
Jeff Pinyan <jeffp@crusoe.net>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]