stuck on perl script
first off, the broken code;
Code:
#!/usr/bin/perl Code:
sub getfiles { |
Sample files:
Code:
$ ls -ltr |tail Code:
$ cat fnd.pl Code:
$ fnd.pl HTH |
I had actually figured this out on my own last night but hadn't gotten around to noting it here yet. the real thing that was breaking it was that I was trying to assign the output of my call to File::Find back to the @filenames array, which can be skipped because its being used as a global variable. thank you, that would have enlightened me if I had still been in the dark.
|
All times are GMT -5. The time now is 03:14 PM. |