Re: about system() call

2018-07-24 Thread Lauren C.
yes I also found a more direct way, use Image::Resize; $image = Image::Resize->new('large.jpg'); $gd = $image->resize(250, 250); thanks for everyone. On 2018/7/25 星期三 PM 1:51, Илья Рассадин wrote: You can resize image with Perl. For example, Imager library can do the thing. See https://metacp

Re: about system() call

2018-07-24 Thread Илья Рассадин
Hi! You can resize image with Perl. For example, Imager library can do the thing. See https://metacpan.org/pod/distribution/Imager/lib/Imager/Transformations.pod#scale() On 7/25/18 4:56 AM, Lauren C. wrote: Thanks for all kind answers. I have another question that, though this is maybe hard

Re: about system() call

2018-07-24 Thread Uri Guttman
On 07/24/2018 09:56 PM, Lauren C. wrote: Thanks for all kind answers. I have another question that, though this is maybe hard, I want to resize batch of images, from the large scale to small one, i.e, this image: https://miscnote.net/wp-content/uploads/2018/07/lauren.jpg (sorry but this is in

Re: about system() call

2018-07-24 Thread Lauren C.
Thanks for all kind answers. I have another question that, though this is maybe hard, I want to resize batch of images, from the large scale to small one, i.e, this image: https://miscnote.net/wp-content/uploads/2018/07/lauren.jpg (sorry but this is indeed me) currently I use system() in perl t

Re: about system() call

2018-07-24 Thread Uri Guttman
On 07/24/2018 08:35 AM, Lauren C. wrote: Hi, $ perl -le 'system "df -h"' $ perl -le 'system "df","-h"' The both two styles work fine. what's the difference between them and which is better usage? this is a more technical answer than the others but it may be useful to you or other readers.

Re: about system() call

2018-07-24 Thread Darryl Philip Baker
s@perl.org" Subject: Re: about system() call The first spawns a shell and can handle things like globs. This is less efficient, more powerful, and more dangerous (susceptible to code injection attacks) The second does not spawn a shell and therefore cannot handle globs. It is als

Re: about system() call

2018-07-24 Thread Chas. Owens
The first spawns a shell and can handle things like globs. This is less efficient, more powerful, and more dangerous (susceptible to code injection attacks) The second does not spawn a shell and therefore cannot handle globs. It is also less susceptible to code injection attacks. system "ls *.p

about system() call

2018-07-24 Thread Lauren C.
Hi, $ perl -le 'system "df -h"' $ perl -le 'system "df","-h"' The both two styles work fine. what's the difference between them and which is better usage? thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.pe

Re: Question about system call

2007-03-13 Thread Chas Owens
On 3/13/07, Paul <[EMAIL PROTECTED]> wrote: On Tue, March 13, 2007 2:38 am, yitzle wrote: > Where you doing "rm -f $file" or `rm -f $file`? > You need to use "backticks" for system commands. If memory serves me, back ticks are only needed inside a system command for UNIX commands and regular tic

Re: Question about system call

2007-03-13 Thread Paul
On Tue, March 13, 2007 2:38 am, yitzle wrote: > Where you doing "rm -f $file" or `rm -f $file`? > You need to use "backticks" for system commands. If memory serves me, back ticks are only needed inside a system command for UNIX commands and regular ticks specifying the system command within the Pe

Re: Question about system call

2007-03-13 Thread Ken Foskey
On Tue, 2007-03-13 at 02:29 -0400, Mathew wrote: > I recently forgot about the unlink function and had been trying to > remove files using the less efficient system call to run "rm -f > /path/to/files". I found, however, that this didn't work at all. > > I've since replaced it with unlink and get

Re: Question about system call

2007-03-13 Thread Madan Kumar Nath
Hello, 1. Check that the "rm" command is not mapped to "rm -i" or similar alias. if so them the "rm -f" command from system() command will not work. Thanx Madan Mathew wrote: I recently forgot about the unlink function and had been trying to remove files using the less effic

Re: Question about system call

2007-03-12 Thread yitzle
Where you doing "rm -f $file" or `rm -f $file`? You need to use "backticks" for system commands. On 3/13/07, Mathew <[EMAIL PROTECTED]> wrote: I recently forgot about the unlink function and had been trying to remove files using the less efficient system call to run "rm -f /path/to/files". I fo

Re: Question about system call

2007-03-12 Thread Jeff Pang
> >I recently forgot about the unlink function and had been trying to >remove files using the less efficient system call to run "rm -f >/path/to/files". I found, however, that this didn't work at all. > >I've since replaced it with unlink and get the results one can expect to >get so it isn't a m

Question about system call

2007-03-12 Thread Mathew
I recently forgot about the unlink function and had been trying to remove files using the less efficient system call to run "rm -f /path/to/files". I found, however, that this didn't work at all. I've since replaced it with unlink and get the results one can expect to get so it isn't a matter of