denzil_cactus has asked for the wisdom of the Perl Monks concerning the following question:
but the problem is that I need to put a condition to show "Invalid or Insufficient Permissions for the directories which are not accessible to me but they exist like/usr/bin/denzil => OK /home/denz/temp => Fail
I have tried the code/home/jessica/temp/perl => No Permission
andmy $per = `ls $dir`; if($per =~ /denied/){ // statement
It is showing the default error message everytime ..I need to supress these errors and put my own messages so that it would go to my condition Please help me outmy $per = "ls $dir"; eval($per) or $var =1; if($var){ //statement
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Customised error messages
by moritz (Cardinal) on Jun 14, 2007 at 11:41 UTC | |
by denzil_cactus (Sexton) on Jun 15, 2007 at 05:28 UTC | |
|
Re: Customised error messages
by clinton (Priest) on Jun 14, 2007 at 11:43 UTC | |
|
Re: Customised error messages
by andreas1234567 (Vicar) on Jun 14, 2007 at 11:43 UTC | |
by denzil_cactus (Sexton) on Jun 15, 2007 at 06:12 UTC |