1. Input Is suppose to be something like "$ABCD/def/dsed.txt". if the input is wrong the script should throw an ERROR message. if user enters $ABCD only, error message should be displayed. if user enters "$ABCD/def/", an error message should be displayed. do i need any regex to check it out?? PLEASE SUGGEST.....$Input_filename=$ARGV[0]; if (!-d $Input_filename && ! -e $Input_filename) { print "USAGE: Please enter '$ABCD/def/dsed.txt' as an arguement \n +"; exit; }
In reply to validate user's input by Rash_10oct
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |