Re: Some explanation please -- iterating thru command line arguments

2010-07-23 Thread newbie01 perl
Hi Brandon, Thanks ... using the cat and pipe looks "cleaner" ... I will try that one ... thanks On Fri, Jul 23, 2010 at 4:53 AM, Brandon McCaig wrote: > On Wed, Jul 21, 2010 at 1:17 PM, newbie01 perl > wrote: > > Does $_ contains the following values on each iteration? > > > > mail_smtp.pl >

Re: Some explanation please -- iterating thru command line arguments

2010-07-22 Thread Brandon McCaig
On Wed, Jul 21, 2010 at 1:17 PM, newbie01 perl wrote: > Does $_ contains the following values on each iteration? > > mail_smtp.pl > -r > ${MAILFROM} > -s > "$subject_line TEST EMAIL" > supportm...@test.com > < > /tmp/test_email.txt Just to clarify the end of the command line: mail_smtp.pl -r ${M

Re: Some explanation please -- iterating thru command line arguments

2010-07-21 Thread John W. Krahn
newbie01 perl wrote: Hi all especially Perl teachers if anyone is ... :-) I just want to know if someone can provide some explanation on how does the argument iterator sub-routine below work. The Perl script is called from a UNIX Korn script as below: mail_smtp.pl -r ${MAILFROM} -s "$subject_li

Re: Some explanation please -- iterating thru command line arguments

2010-07-21 Thread Jim Gibson
On 7/21/10 Wed Jul 21, 2010 10:17 AM, "newbie01 perl" scribbled: > Hi all especially Perl teachers if anyone is ... :-) > > I just want to know if someone can provide some explanation on how does the > argument iterator sub-routine below work. The Perl script is called from a > UNIX Korn scrip