Wes,

I that instance, why not just substr?

$foo_new = substr($foo,0,2);

Dirk Bremer - Systems Programmer II - AMS Department - NISC
636-922-9158 ext. 652 fax 636-447-4471

<mailto:[EMAIL PROTECTED]>

----- Original Message ----- 
From: "North, Wesley J" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 11:31 AM
Subject: RE: Another stripping question


> Group,
> 
> I think I figured it out I can strip $foo by doing the following:
> 
> $foo = "3212";
> @FOO_NEW;
> ($FOO_NEW[0],$FOO_NEW[1]) = split (//, $foo);
> #should return a value of "32"
> 
> Anyone see a problem with this? Or, perhaps, and easier way? Thanks much.
> 
> -Wes


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

Reply via email to