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

Try string, not block

by pushtaev (Sexton)
on Sep 12, 2012 at 08:03 UTC ( [id://993171]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval "require $module" or $self->error("...");
    
  2. or download this
    try 
        "require $module" # It's not going to work
    catch {
        $self->error("...");
    }
    
  3. or download this
    try {
        eval "require $module" or die $@;
    ...
    catch {
        $self->error("...");
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found