Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: perl -s is evil?

by pileswasp (Monk)
on Nov 22, 2001 at 00:10 UTC ( [id://126843]=note: print w/replies, xml ) Need Help??


in reply to perl -s is evil?

Curiously enough, if you try and use it all (in an == for instance, it reverts back, so it's not as scary as it looks, just a bit buggy:
#! /usr/bin/perl use strict; print "\$> = ", $>, "\n"; $> == 1000 and warn "eq"; print "\$> = ", $>, "\n";

perl -Tws evil.pl -\>=0 ouputs:
$> = 0 eq at evil.pl line 5. $> = 1000

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found