alenaustin has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
i have 6 files in one folder which runs one after the other, but the real issue now is i need a specific file which should run 1st and the rest can run after this. now i am using this code
@filenames = sort { -M "$b" <=> -M "$a" } @filenames; foreach (@filenames){ push @file_list, "$_ \n"; } die if (!@file_list);
please help :)
2017-12-13 Athanasius added code and paragraph tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to run a specific file from a list of filenames in a folder
by Corion (Patriarch) on Dec 12, 2017 at 10:15 UTC | |
|
Re: how to run a specific file from a list of filenames in a folder
by Laurent_R (Canon) on Dec 12, 2017 at 11:19 UTC | |
|
Re: how to run a specific file from a list of filenames in a folder
by thanos1983 (Parson) on Dec 12, 2017 at 10:58 UTC | |
|
Re: how to run a specific file from a list of filenames in a folder
by kcott (Archbishop) on Dec 13, 2017 at 03:11 UTC | |
|
Re: how to run a specific file from a list of filenames in a folder
by Anonymous Monk on Dec 12, 2017 at 15:26 UTC |