in reply to Re: GLOB function
in thread GLOB function
Thanks for help, you have understood the problem quite well, I have to sort files with same basename present in different directory and subdirectories according to their mtime such that only latest modified file would come in @filelist. Later I have to work on these files separately to fetch some particular data which is working fine for me.I have done changes as per your code but on terminal these errors are coming. Please resolve this issue as I am working on a shared workspace so I can't install any package in linux.
Use of uninitialized value $arg in stat at /user/s5e7420/local/lib/per +l5/5.18.0/File/stat.pm line 206. Use of uninitialized value $name in index at /user/s5e7420/local/lib/p +erl5/5.18.0/Symbol.pm line 118. Use of uninitialized value $name in pattern match (m//) at /user/s5e74 +20/local/lib/perl5/5.18.0/Symbol.pm line 121. Use of uninitialized value $name in hash element at /user/s5e7420/loca +l/lib/perl5/5.18.0/Symbol.pm line 121. Use of uninitialized value $name in concatenation (.) or string at /us +er/s5e7420/local/lib/perl5/5.18.0/Symbol.pm line 129. Can't call method "mtime" on an undefined value at script.pl line 13.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: GLOB function
by thanos1983 (Parson) on Jun 19, 2018 at 09:13 UTC | |
| |
|
Re^3: GLOB function (updated)
by haukex (Archbishop) on Jun 19, 2018 at 08:07 UTC | |
by choroba (Cardinal) on Jun 19, 2018 at 15:17 UTC | |
by haukex (Archbishop) on Jun 19, 2018 at 18:02 UTC | |
by rahu_6697 (Novice) on Jun 19, 2018 at 09:09 UTC | |
by haukex (Archbishop) on Jun 19, 2018 at 18:16 UTC |