Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using modules with 'no warnings' in perl 5.005

by Corion (Patriarch)
on Jul 29, 2003 at 07:48 UTC ( [id://278754]=note: print w/replies, xml ) Need Help??


in reply to using modules with 'no warnings' in perl 5.005

I would take the following approach, faking a "warnings.pm" without creating a file like that :

eval "use warnings;"; if ($@) { eval q{ package warnings; sub import {}; sub unimport {}; }; };
You could try to also do some funky stuff with $^W, but as warnings is a lexical pragma, it's best not to go there :-)
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-25 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found