----- Original Message -----
From: North, Wesley J <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 6:26 PM
Subject: RE: Another stripping question


> Thanks for the info I do have about 5 or 6 Perl books. And will look into
> them.
>
> Here's the problem, I made a mistake in my previous e-mail, I know how to
> split an array by a certian character...for example
>
> $foo = "3.2.1";
> @FOO_NEW;
> ($FOO_NEW[0],$FOO_NEW[1]) = split (/\./, $foo); #Voila I have my first and
> second position
>
> The mistake I made is $foo doesn't contain "." separated values it's more
> like this:
>
> $foo = "321";
> or it could be
> $foo = "3214";
>
> So I want the first 2 values which will change depending on what $foo is
set
> as. I wondered if I could split in between characters? Suggestions?
>
@foo = split "", $foo;

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl

Reply via email to