[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: print $fh; how is this supposed to work?
On Jan 27, Ilya Zakharevich said:
>Do you want
>
> $fh = 12;
> print $fh;
>
>print to filehandle \*12 ? ;-) [ I think this is how perl4 worked, BTW. ]
Damn, I'm silly.
Ok, then one OTHER gripe.
Why does
$fh = \*FH;
print { $fh };
give me a syntax error at '};'?
print { $fh } $_;
doesn't. :)
--
MIDN 4/C PINYAN, USNR, NROTCURPI http://www.pobox.com/~japhy/
jeff pinyan: japhy@pobox.com perl stuff: japhy+perl@pobox.com
CPAN ID: PINYAN http://www.perl.com/CPAN/authors/id/P/PI/PINYAN/
PerlMonth - An Online Perl Magazine http://www.perlmonth.com/
- References to:
-
Ilya Zakharevich <ilya@math.ohio-state.edu>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]