Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^6: Best option for "switch/case" functionality? (BEGIN)

by tye (Sage)
on Jun 29, 2016 at 12:37 UTC ( [id://1166878]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Best option for "switch/case" functionality? (BEGIN)
in thread Best option for "switch/case" functionality?

Maybe instead of tossing off random questions, why don't you try it and see? I already did that before I posted it.

If I wanted to make it lexically scoped to the 'eval' block, then I'd have to write:

BEGIN { eval { BEGIN { require ...; ...->import( ... ) } ... } }

Which, of course, I didn't.

- tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1166878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-18 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found