Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Fun with one keyword

by liz (Monsignor)
on Sep 16, 2003 at 12:39 UTC ( [id://291800]=note: print w/replies, xml ) Need Help??


in reply to Fun with one keyword

To get rid of the die, maybe you can do something with backticks. replace last line with something like
$_[6]=$";$"='';`"echo @_[19,4,0,5,6,7,14,8,5,13,2,9,6,1,2,9,10,6,13,7, +12,3,2,9]"`
(and of course, the "echo" can be obfuscated just as the rest, but I leave that as an excercise to the reader).

Unfortunately, this complains of the "echo" executable not found. ;-(

I guess you either need a generally available executable that prints its arguments, or find out how to call shell commands with backticks.

Liz

Replies are listed 'Best First'.
Re: Fun with one keyword
by Abigail-II (Bishop) on Sep 16, 2003 at 13:04 UTC
    Unfortunately, this complains of the "echo" executable not found. ;-(

    That's because your have "echo args" and pass that to the shell - the shell sees that as one token. However, if you fix that and pass echo "args" to the shell, not much will get printed, because that output gets eaten by the backticks. You have to try something like:

    `echo "args" > /dev/tty`

    Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (8)
As of 2024-04-23 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found