Casey West writes ..


>On Wed, May 02, 2001 at 05:37:27PM -0400, Casey West wrote:
>: On Wed, May 02, 2001 at 03:16:41PM -0700, Peter Lemus wrote:
>: : Hi, 
>: : I'm having some trouble trying to execute the followin
>: : command from a perl script.
>: : rmdir /s /q username #this works from the command line
>: : in win2k.
>: : I tried:   
>: : system 'rmdir /s /q $user' # no luck.  Any
>: : suggestions?
>: 
>: My first suggestion is to look at the '$?' variable, it holds the
>: error code for system() calls.
>: 
>:   system( "romdir /s /q $user" ) || dir $?;
>
>dir??? "Casey, that's supposed to be die(), dummy."

and 'romdir' is surely meant to be 'rmdir' .. someone needs some sleep ;)

still the question remains - why call out to the system when the same thing
can be done in Perl

  perldoc File::Path

-- 
  jason king

  In Norway, you may not spay your female dog or cat.  However, you may
  neuter the males of the species. - http://dumblaws.com/

Reply via email to