Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Forcing array context on a file handle

by tobyink (Abbot)
on Oct 30, 2012 at 21:07 UTC ( #1001554=note: print w/replies, xml ) Need Help??


in reply to Re: Forcing array context on a file handle
in thread Forcing array context on a file handle

Yes, I was a bit surprised by the assertion that this didn't work. I can only suppose the OP forgot the angled brackets when testing.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re^2: Forcing array context on a file handle