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
>  

Reply via email to