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

Re: Re: Re: Re: perl -s is evil?

by jclovs (Sexton)
on Nov 16, 2001 at 21:29 UTC ( #125859=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Re: perl -s is evil?
in thread perl -s is evil?

Well, just some fooling around with the last statement Re: Re: Re: perl -s is evil? on my linux box runing Perl 5.005_03, I decided to see what taint checking would do to this example. Wwll here's the results:

$ perl -sleT 'use diagnostics; use strict; "Hello" =~ /(\w+)/; print $ +1' -- -1=foo $
While T in any other position returns
$ perl -sleT 'use diagnostics; use strict; "Hello" =~ /(\w+)/; print $ +1' -- -1=foo foo $
Clovs aka jclovs

Comment on Re: Re: Re: Re: perl -s is evil?
Select or Download Code
Replies are listed 'Best First'.
Re5: perl -s is evil?
by blakem (Monsignor) on Nov 17, 2001 at 01:43 UTC
    ummm... You've got a bit of a command like goof there.... The following one-liner illustrates it. Can you figure it out?
    perl -weT 'print "I like jellybeans"' Useless use of a constant in void context at -e line 1.
    consult perlrun for hints. ;-)


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2015-11-29 23:37 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls