RE: [PBML] Split between letters and numbers
- This also works!
$port =~ s/(\D)(\d)/$1 $2/;
HP UNIX OVO Enrollment
Hewlett-Packard (Canada) Co.
URL: http://www.hp.ca <http://www.hp.ca/>
[mailto:email@example.com] On Behalf Of Jeff Pinyan
Sent: Monday, October 08, 2007 4:25 PM
Subject: Re: [PBML] Split between letters and numbers
On 10/8/07, Dukelow, Don <dukelow@... <mailto:dukelow%40hp.com> >
> Gret idea but not quite1 Using the following code.You're not using it correctly; don't print $1 or $2 afterwards, print
> print "$port\n";
> $port =~ s/([a-z])(\d)/$1 $2/;
> print "$1 == $2\n";
> I get the results, It drops the first letter. I don't understand
> e == 0
$port. The code I gave changes $port for you.
[Mary said,] "Do whatever he tells you." ~ John 2:5
[Non-text portions of this message have been removed]