J
Jean-Luc BEAUDET
Hi all ,
I wrote something like below
but it doesn't fit my needs.
What i'd like would be:
if the chown command succeeds it prints Rights for $DirtoCreate
successfully changed.
BUT if it fails, i want it to only print the warn text and NOT the print
text.
The first case works OK, but in the second one i've got both the warn
AND the print.
Where did i fail ?
Thx for any help.
Jean-Luc B :O)
I wrote something like below
58 if ( chown 102, 200, $DirtoCreate or warn "Unable to
chown $DirtoCreate: $!\n" ) {
59 print "Rights for $DirtoCreate successfully
changed.\n";
60 }
but it doesn't fit my needs.
What i'd like would be:
if the chown command succeeds it prints Rights for $DirtoCreate
successfully changed.
BUT if it fails, i want it to only print the warn text and NOT the print
text.
The first case works OK, but in the second one i've got both the warn
AND the print.
Where did i fail ?
Thx for any help.
Jean-Luc B :O)