in reply to Re: Bad news for IO::Handle magic (SWYM or sink)
in thread Bad news for IO::Handle magic
While my examples always used STDIN, that was for brevity.
Any code can play tricks on you if you use the Module->sub() OO syntax.
This isn't limited to all-caps names, either:$ perl -MCGI -le 'select(select(CGI)); print CGI->new' Can't locate object method "new" via package "IO::Handle" at -e line 1 +.
perl -MFile::Spec -le 'select(select(File::Spec)); print File::Spec->r +ootdir' Can't locate object method "rootdir" via package "IO::Handle" at -e li +ne 1.
--Stevie-O
$"=$,,$_=q>|\p4<6 8p<M/_|<('=> .q>.<4-KI<l|2$<6%s!<qn#F<>;$, .=pack'N*',"@{[unpack'C*',$_] }"for split/</;$_=$,,y[A-Z a-z] {}cd;print lc
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Bad news for IO::Handle magic (SWYM or sink)
by tye (Sage) on Jul 07, 2004 at 03:43 UTC | |
Re^3: Bad news for IO::Handle magic (SWYM or sink)
by ysth (Canon) on Jul 07, 2004 at 15:37 UTC | |
by Stevie-O (Friar) on Jul 07, 2004 at 23:20 UTC |
In Section
Meditations