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

Molt's scratchpad

by Molt (Chaplain)
on Jun 03, 2004 at 10:30 UTC ( #360043=scratchpad: print w/replies, xml ) Need Help??

sub do_funky_tag_thing { my ($text1, $text2) = @_; # Build the command-line args from the web-service # args. Some funky logic here.. my %args; $args{'-opt1'} = $text1 if defined $text1; if (defined $text1 and defined $text2) { $args{'-opt2'} = process_text($text2); } # Log the command to L4P for audit purposes. my $external_command = 'tag '; for my $opt (keys %args) { $external_command .= $opt.' '.shell_escape($args{$opt)) } get_logger->info( "Running external command: $external_command"; ); # Now run the actual command.. with no reliance on # shell_escape() system('tag',%args); }
Log In?

What's my password?
Create A New User
choroba recommends ABSG to Discipulus
[erix]: yes, very handy that. I always use the one-page html version (dumped a local copy of it)
[erix]: (easier for searching)
choroba tries to grep -i choroba absg.html
[erix]: I count 3 (+1 in the list)-- wel done :)

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2017-11-24 11:52 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (348 votes). Check out past polls.