Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Automating execution of shell scripts

by hippo (Bishop)
on Sep 03, 2021 at 13:07 UTC ( #11136413=note: print w/replies, xml ) Need Help??


in reply to Re^2: Automating execution of shell scripts
in thread Automating execution of shell scripts

Your code as supplied does not compile:

$ perl -cw 11136410.pl Missing right curly or square bracket at 11136410.pl line 11, at end o +f line syntax error at 11136410.pl line 11, at EOF 11136410.pl had compilation errors.

Other problems: you are not using strict, your scope of $dir is incorrect, there is no assignment to $_, you have scalar context when assigning the arguments in your subroutine and your while loop will never end.

Spend a little time trying to fix these issues and post back here if you get stuck.


🦛

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2022-01-19 20:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?