Thanks for your answers. They were helpful.
Terry
>>> "Terry Vaughn" <[EMAIL PROTECTED]> 11/12/02 03:20PM >>>
THis is the best I could come up with so far.would prefer to use something with
reg expressions :
$linetoprobe = "YYY~ZZZ";
@mytempvalue = split(/ZZZ/, $linetoprobe);
print sub
THis is the best I could come up with so far.would prefer to use something with
reg expressions :
$linetoprobe = "YYY~ZZZ";
@mytempvalue = split(/ZZZ/, $linetoprobe);
print substr(@mytempvalue[0], -1);
>>> "Terry Vaughn" <[EMAIL PROTECTED]> 11/12/02 03:11PM >>>
Hello all.
$linetoprobe
my ($mytempvar) = $linetoprobe =~ /(^.*)ZZZ/;
--
James Schappet
http://www.schappet.com
On Tue, 12 Nov 2002, Terry Vaughn wrote:
> Hello all.
>
> $linetoprobe = "YYY~ZZZ" ;
>
> How Do I assign $mytempvar the character immediately prior to "ZZZ" using reg exp??
$mytempvar) =
-Original Message-
From: Terry Vaughn [mailto:tvaughn@;dakotagrowers.com]
Sent: Tuesday, November 12, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] regexp Q
Hello all.
$linetoprobe = "YYY~ZZZ" ;
How Do I assign $mytempvar the character immediately
Hello all.
$linetoprobe = "YYY~ZZZ" ;
How Do I assign $mytempvar the character immediately prior to "ZZZ" using reg exp??
Terry
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs