From: Moreno, Javier (GXS, Softtek) [mailto:Javier.Moreno@;gxs.com]
>>I am trying to run a small script to do a whole bunch of things on files.
However, I cannot even make it 'cd' into a correct directory. This is a smal
piece of it:

# CD into each directory on the working directory $scall = 'cd /forms/'.@dirlist[$i]; print "Attempting '$scall' ...\n"; system ($scall) or die "\nError! Invalid directory?";
Never use a system call when there is a built-in to do the same function
(there are a couple of exceptions to that rule for later).

Use chdir function to do the cd in Perl.

--
  ,-/-  __      _  _         $Bill Luebkert   ICQ=162126130
 (_/   /  )    // //       DBE Collectibles   Mailto:dbe@;todbe.com
  / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to