Re: Perl variable - cuts

2002-02-08 Thread John W. Krahn
"John W. Krahn" wrote: > > Chris Hurt wrote: > > > > Hi all; > > Hello, > > > Got a newbie question for you. I have a number of exactly 10 digits > > (2001090701) and I want to be able to read it from a file, cut the first 8 > > digits from the last two digits and put each into a variable (for

Re: Perl variable - cuts

2002-02-08 Thread John W. Krahn
Chris Hurt wrote: > > Hi all; Hello, > Got a newbie question for you. I have a number of exactly 10 digits > (2001090701) and I want to be able to read it from a file, cut the first 8 > digits from the last two digits and put each into a variable (for comparison > and addition). I would do it

RE: Perl variable - cuts

2002-02-08 Thread Mark Anderson
d stores the results (due to the parens) in $1 and $2. /\/\ark -Original Message- From: HURT, CHRIS [Non-Pharmacia/1000] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:29 AM To: '[EMAIL PROTECTED]' Subject: Perl variable - cuts Imp

Perl variable - cuts

2002-02-08 Thread HURT, CHRIS [Non-Pharmacia/1000]
Hi all; Got a newbie question for you. I have a number of exactly 10 digits (2001090701) and I want to be able to read it from a file, cut the first 8 digits from the last two digits and put each into a variable (for comparison and addition). I would do it in the korn shell like this: NUM=`gre