Re: backticks

2006-08-19 Thread Ken Foskey
On Sat, 2006-08-19 at 16:59 -0400, John Ackley wrote: > Thanks > > in line comments > > Tom Phoenix wrote: > > On 8/19/06, John Ackley <[EMAIL PROTECTED]> wrote: > > > >> `/bin/rm -f \"$oldimage\"`; > >> `/bin/rm /tmp/errormessage`; > > > > Why not simply use Perl's unlink function? > > apparent

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread John W. Krahn
I BioKid wrote: > I have a simple - yet trivial problem - > > I 2000 directory at /home2/foo/foodir/ . > I need to copy all files with extension *.atm and *.ali to another > directory > called temp (say /home2/foo/foodir/temp ) > After that I need to run a program in each of this directory - (say

Re: backticks

2006-08-19 Thread Tommy Nordgren
On Aug 19, 2006, at 10:59 PM, John Ackley wrote: Thanks in line comments Tom Phoenix wrote: On 8/19/06, John Ackley <[EMAIL PROTECTED]> wrote: `/bin/rm -f \"$oldimage\"`; `/bin/rm /tmp/errormessage`; Why not simply use Perl's unlink function? apparently unlink will not deal with wild c

Re: backticks

2006-08-19 Thread John Ackley
Thanks in line comments Tom Phoenix wrote: On 8/19/06, John Ackley <[EMAIL PROTECTED]> wrote: `/bin/rm -f \"$oldimage\"`; `/bin/rm /tmp/errormessage`; Why not simply use Perl's unlink function? apparently unlink will not deal with wild cards in $oldimage (needed to clean up garbage) seco

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread Mumia W.
On 08/19/2006 02:19 AM, I BioKid wrote: I have a simple - yet trivial problem - I 2000 directory at /home2/foo/foodir/ . I need to copy all files with extension *.atm and *.ali to another directory called temp (say /home2/foo/foodir/temp ) After that I need to run a program in each of this di

Re: backticks

2006-08-19 Thread Tom Phoenix
On 8/19/06, John Ackley <[EMAIL PROTECTED]> wrote: `/bin/rm -f \"$oldimage\"`; `/bin/rm /tmp/errormessage`; Why not simply use Perl's unlink function? `/usr/local/bin/gnuplot $gpfile 2>&1 >/tmp/errormessage` ; Use backticks if you're interested in the output. But if you're not looking at t

backticks

2006-08-19 Thread John Ackley
I have a program which should create a new image after deleting the old. Image names have $$ embeded to assure uniqueness (within a reasonable period of time). The following backticks don't work as expected. `/bin/rm -f \"$oldimage\"`; `/bin/rm /tmp/errormessage`; `/usr/local/bin/gnuplot $gpfil

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread Tom Phoenix
On 8/19/06, I BioKid <[EMAIL PROTECTED]> wrote: @a=`cat list`; foreach $a(@a) { `mkdir $a`; You don't have to use the shell's mkdir (in backticks); you can use Perl's mkdir function, if you first use chomp() to get rid of the newlines. Could the newlines be causing other troubl

RE: calculate the value in an array of array

2006-08-19 Thread Charles K. Clarkson
chen li wrote: : $total[ $column ] += $row->[ $column ]; : : Can you or anyone else explain it a bit more? It is short for this. $total[ $column ] = $total[ $column ] + $row->[ $column ]; HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 96

Re: calculate the value in an array of array

2006-08-19 Thread chen li
--- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > > I have an array of array look like this: > > > > @array_of_array=( > > > > [1,2,3,4,5], > > [1,2,3,4,5], > > [1,2,3,4,5], > > [1,2,3,4,5] > > ) > > > > How do I get the total values for each c

Re: Perl Training

2006-08-19 Thread Peter Scott
On Fri, 18 Aug 2006 10:18:44 -0400, Podikunju, Sajan wrote: > Does anyone has a recommendation for a very good perl training center in > US See the lists at http://www.perltraining.org/ -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PR

Flash w/Perl

2006-08-19 Thread Mike Blezien
Hello, I noticed alot of Flash applications like forms use PHP. I was wondering if Perl can be used inplace of PHP and how well Perl works with Flash. Been trying to find some information on this topic, but not much luck. If anyone on the list has been doing this or knows where I may find som

Re: Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread Xavier Mas i Ramón
A Dissabte 19 Agost 2006 09:19, I BioKid va escriure: > I have a simple - yet trivial problem - > > I 2000 directory at /home2/foo/foodir/ . > I need to copy all files with extension *.atm and *.ali to another > directory called temp (say /home2/foo/foodir/temp ) > After that I need to run a progr

Simple-Yet Trivial Problem - Copy files from directory

2006-08-19 Thread I BioKid
I have a simple - yet trivial problem - I 2000 directory at /home2/foo/foodir/ . I need to copy all files with extension *.atm and *.ali to another directory called temp (say /home2/foo/foodir/temp ) After that I need to run a program in each of this directory - (say joy *.ali ) If am suppose to