Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Fletch's scratchpad

by Fletch (Chancellor)
on Jun 02, 2004 at 01:56 UTC ( #358991=scratchpad: print w/replies, xml ) Need Help??

TEST="foo=bar%20baz" perl -MScalar::Util=tainted -T -le 'print "TEST t +aint? ", tainted( $ENV{TEST} ); ($a, $b) = split( /=/, $ENV{TEST} ); +print "a? ", tainted( $a ), "\tb? ", tainted( $b ); $b =~ s/%([a-fA-F +0-9][a-fA-F0-9])/pack("C", hex($1))/eg; print "b? ", tainted( $b )' TEST taint? 1 a? 1 b? 1 b? 1

"REPENT CHOMPLEQUINS!", SAYS THE CHONKCHOP MAN

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[msh210]: perl -e'warn "test$/", "" '
[msh210]: doesn't append anything.
[msh210]: It should say "If the last nonempty element of LIST" or "If the string thus to be printed does not end in a newline""
[msh210]: Am I wrong?
[shmem]: no. You're right.
[msh210]: About time... last time I was right was... I don't even remember when.
[shmem]: perl -e 'warn "test$/", ^@^ '
[Eily]: well, at least it's right about warn doing the same thing as die :)
[shmem]: same with undef as last element
[msh210]: oh, good point. It's the best kind of correct

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (19)
As of 2017-04-24 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (439 votes). Check out past polls.