Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 Missing right curly or square bracket at line 11, at end o +f line syntax error at line 11, at EOF 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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2023-02-01 22:29 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (14 votes). Check out past polls.