that's easy. $index =~ s/^0*//; if $index contained leading zeros they are gone, otherwise nothing has happened. cr On Thu, 19 Apr 2001 15:38:09 +0000, Mark Martin said: > Hi all, > I have sucked two substrings into two variables : > > $index = substr $_, 35, 11; > $value = substr $_, 64, 6; > > These variables may or may not have leading zero/s : > > 000009/000099/000999........ and so on. > > If they do I need to strip away the leading zeros. > > Any ideas? > > Mark >
- Removing Leading Zeros Mark Martin
- Removing Leading Zeros Collin Rogowski
- Removing Leading Zeros Mark Martin
- Re: Removing Leading Zeros David M. Lloyd
- Re: Removing Leading Zeros Timothy Kimball
- RE: Removing Leading Zeros blowther
- Re: Removing Leading Zeros Walnut
- Re: Removing Leading Zeros Stephen P. Potter
- Re: Removing Leading Zeros Peter Scott