This code appears to run the same command on the same file for each updated file in @ARGV[1..$#ARGV]. The list form of system in a perl-style loop over file basenames would work better.
I'd be inclined to do this with make, either called from perl or in a frequent cron job.
After Compline,
Zaxo
In reply to Re: onchange - a script to run a command when a file changes
by Zaxo
in thread onchange - a script to run a command when a file changes
by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |