LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   help with glob - perl invoked from shell (https://www.linuxquestions.org/questions/programming-9/help-with-glob-perl-invoked-from-shell-682930/)

Telemachos 11-12-2008 03:31 PM

Quote:

Originally Posted by Sergei Steshenko (Post 3339854)
You really don't need this:

Code:

my @open_files = readdir $file_handle;

Fair enough, but I think you missed my point. I wasn't trying to write his program. I was simply trying to show him the difference between an array created by using glob and one created by using opendir & readdir.

johngreg 11-12-2008 03:33 PM

thanks, i will try the methods suggested. one more point to add on regarding usage from shell - this perl script is called along with other scripts from a master shell script which takes backup, sent emails alerts and few other tasks.
and again - thanks Telemachos for suggesting the hardcoding - i dint think in that way at all. as i need to do this only on known set of extensions- i can hardcode and sent some parameter to pick the one i need and there by skipping interpretation by shell.


All times are GMT -5. The time now is 02:05 PM.