i have a perl program written for a file in a folder.i want to run this for all files in that folder. the code i have written doesnt seem to work
#!/usr/bin/perl @files = glob("$ARGV[0]/*"); foreach $f (@files) { $cmd="perl addclause.pl < $f "; system($cmd); }
In reply to run a perl script for all files in a folder by lakssreedhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |