bazong has asked for the wisdom of the Perl Monks concerning the following question:
In case the dst is correct and there are files, i return the names as an array. If there are no files i get an empty array and in case the dst folder doesn't exist a warning will be written to the console (C'ant stat .. No such file or directory). I'd like put the warning into a variable. How can i do this? Thanks in advance Michael@files = FileHelper::getFileList($dstPath);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: store a warning in a variable
by PeterPeiGuo (Hermit) on Nov 09, 2010 at 14:35 UTC | |
by bazong (Initiate) on Nov 10, 2010 at 09:16 UTC | |
|
Re: store a warning in a variable
by JavaFan (Canon) on Nov 09, 2010 at 13:03 UTC | |
by 7stud (Deacon) on Nov 09, 2010 at 19:51 UTC | |
by JavaFan (Canon) on Nov 09, 2010 at 21:31 UTC | |
by 7stud (Deacon) on Nov 10, 2010 at 01:43 UTC |