Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Can't use string ("main::STDOUT") as a symbol ref while "strict refs" in use

by Mr. Muskrat (Canon)
on Aug 26, 2012 at 17:50 UTC ( #989856=note: print w/replies, xml ) Need Help??


in reply to Can't use string ("main::STDOUT") as a symbol ref while "strict refs" in use

GlitchMr is correct however there is another way (this is Perl after all... TIMTOWTDI). Just disable strict refs.

perl -Mstrict -M-strict=refs -e "print {select()} 6" 6

Long version:

use strict; no strict 'refs' print {select()} 6;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989856]
help
Chatterbox?
[Mr. Muskrat]: Is it just me or does that timeout issue seems to be happening more often lately?
[Corion]: Mr. Muskrat: I'm not sure if it really happens more often, but I don't exactly know either
[LanX]: yep
[LanX]: more often for some weeks now
[Corion]: I think I'll have to manually (as god) intervene with that node, as the simple reparenting didn't seem to fix the parent/child relationship of the nodes
[Corion]: I think I have an idea but I'll have to open a ticket with Pair.com on that - hopefully I get to that on the weekend
LanX imagines a burning thorn bush
[Mr. Muskrat]: Thank you!
[Mr. Muskrat]: Oh that is odd. I got the message that it was reparented but yeah, it didn't actually do it. lol
[Corion]: LanX: No, Co-Rion appears as Monkey God :-)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2017-01-19 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.