Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Molt's scratchpad

by Molt (Chaplain)
on Jun 03, 2004 at 10:30 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-16 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found