System or Modules?

2003-08-14 Thread Pablo Fischer
Hi

I finish a big part of a script. Cause Im working with command to 'cp', 
'remove', 'move','make directories' Im using certain Modules to do that, 
however I would like to know whats better in perl, to use the 'system' 
command or to use modules?

The final project could be running in two years (or maybe never) in Windows or 
BSD (Im working in Linux)

Yeah, that's my Perl Question :-)
thanks!
Pablo
-- 
Pablo Fischer Sandoval ([EMAIL PROTECTED])
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131  AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: System or Modules?

2003-08-14 Thread Janek Schleicher
Pablo Fischer wrote at Tue, 05 Aug 2003 01:58:35 +:

> I finish a big part of a script. Cause Im working with command to 'cp', 
> 'remove', 'move','make directories' Im using certain Modules to do that, 
> however I would like to know whats better in perl, to use the 'system' 
> command or to use modules?

unlink
rename
mkdir
are all Perl builtin functions (read e.g. perldoc -f unlink)
that remove, move or make directories.

To copy, just use the 
File::Copy
module.

> The final project could be running in two years (or maybe never) in Windows or 
> BSD (Im working in Linux)
> 
> Yeah, that's my Perl Question :-)
> thanks!
> Pablo


Greetings,
Janek

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]