Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: running string as perl script and pass into STDIN programatically

by gideondsouza (Pilgrim)
on Feb 17, 2013 at 19:13 UTC ( #1019192=note: print w/ replies, xml ) Need Help??


in reply to Re: running string as perl script and pass into STDIN programatically
in thread running string as perl script and pass into STDIN programatically

Thank you VERY much both of you for your answers :D

Its super late at night, I gave the code a go and it works. I will try with my app immediately tomorrow.

Quick question I was planning to use temp files, but should use File::Tempdir for the temporary directory? How should I best take care of all those files generated?


Comment on Re^2: running string as perl script and pass into STDIN programatically
Re^3: running string as perl script and pass into STDIN programatically
by aitap (Chaplain) on Feb 17, 2013 at 19:19 UTC
    AFAIU, both File::Temp and File::Tempdir destroy the apporpriate files/directories when their object comes out of scope (e.g. at the end of {} block where it was declared using my).
    Sorry if my advice was wrong.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-04-16 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (436 votes), past polls