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

Re: Any reason to use the Paws module over aws cli commands in perl script?

by haukex (Archbishop)
on Oct 21, 2020 at 15:10 UTC ( [id://11123038]=note: print w/replies, xml ) Need Help??


in reply to Any reason to use the Paws module over aws cli commands in perl script?

I feel dirty just executing command line commands in my perl script and it doesn't feel very professional

If you do it right, it's fine* - but backticks are usually not the "right" way to do it: Calling External Commands More Safely

In this case, see jo37's and my responses to PERL to AWS.

* Update: To be a little more specific: I personally think it's fine in the case of aws and other complex tools like that, and if you're not doing it in a tight loop where performance is important. For stuff like grep, cat, awk, etc., of course one shouldn't call external commands - afoken made a nice list in this node.

Log In?
Username:
Password:

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

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

    No recent polls found