On 2 Sep 2002, tux wrote:

> 
> 
> hey all, sorry if im asking a silly or stupid question, but i just CANT
> seem to find anything on google/in books on how to do this, its slowly
> make me go bald..
> 
> all im trying to do is run the shell command: 
> 
> convert -quality 40 image.jpg resampled_image.jpg
> 
> and basically im getting perl to loop through a directory and resample
> any image over a certain size... 
> 
> the loop works fine i just dont know how to run the 'convert.. etc etc'
> from perl..

perldoc -f system
If you want to capture the output of your command use backticks like this
my @files = `ls`; # This will store the files in your current dir in @files
You can also read up on the qx operator.


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

Reply via email to