shushant has asked for the wisdom of the Perl Monks concerning the following question:
I am taking a file as an input from user , all I want is that if the user for the first time gives wrong file name which does not belong in a directory a message should be displayed , and should ask him to renter the name . How can I do it ?
One more question , how to check whether the file input by the user is present in directory or not ??
Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: taking file from user
by mtmcc (Hermit) on Jul 15, 2013 at 13:37 UTC | |
by ww (Archbishop) on Jul 15, 2013 at 19:46 UTC | |
|
Re: taking file from user
by marto (Cardinal) on Jul 15, 2013 at 13:43 UTC | |
|
Re: taking file from user
by davido (Cardinal) on Jul 15, 2013 at 15:47 UTC | |
|
Re: taking file from user
by pvaldes (Chaplain) on Jul 15, 2013 at 19:48 UTC |