Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Embed Unix command inside unix command in perl

by Xilman (Hermit)
on May 21, 2010 at 06:46 UTC ( [id://841033]=note: print w/replies, xml ) Need Help??


in reply to Re: Embed Unix command inside unix command in perl
in thread Embed Unix command inside unix command in perl

Although spawning two child process and using another language (the shell) to do a bit of string handling with a date is rather over the top. Wouldn't it be better done in Perl?

I understood the OP's code to be a simple example which shows the requirement, not as a complete specification of his end product. If the shell command was something distinctly non-trivial, or perhaps not the same command on each run of the Perl script, it may be much harder to implement the complete program purely in Perl.

Paul

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (9)
As of 2024-03-28 09:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found