Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by haukex (Bishop)
on Oct 21, 2020 at 15:10 UTC ( #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
Node Status?
node history
Node Type: note [id://11123038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2020-11-27 03:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?