On Wed, 29 Sep 2004 [EMAIL PROTECTED] wrote:

> Thanks for the support .the following is the code I have written.
> Working fine.

Still not right though -- it was suggested to you that you use the $! 
variable in your die statement so that you get the error message, hence:

  do_stuff( $arg) or die "Can't do stuff!";     # bad!
  do_stuff( $arg) or die "Can't do stuff!" $!;  # good!

Also, as another person noted, chown() and chmod() are built in to Perl, 
so there's no need to make a system call to do these operations.

Also, why are you prefixing your variables with $main:: ? There can be 
good reasons to do this, but they're esoteric -- most of the time you 
can safely leave out the 'main::' part.  



-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to