Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Prevent Strings From Being Interpreted As A File Handle

by amon (Scribe)
on Apr 27, 2014 at 09:36 UTC ( [id://1083985]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
        'Input'->awesome;
    };
    say "Caught: $@" if $@;
    
  2. or download this
    This is perl v5.16.2
    yay, this works
    Caught: Can't locate object method "awesome" via package "IO::File" at
    + prog.pl line 27.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-25 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found