try this
$text =~ s/^0//;

this should work, the ^ indicates that it must be the first character 
of the line or of the string...
~Brian


>Hi,
>
>I need to delete the first character of a variable if this (and ONLY 
>this) character is a 0 (zero).
>
>What I tried :
>
>    $text =~ s/01/1/;
>    $text =~ s/02/2/;
>    $text =~ s/03/3/;
>    etc...
>
>Not what I want, because it also deletes the 0 (zero) if it is NOT 
>the first character.
>
>What should I use ?
>
>
>
>Vriendelijke groet,
>
>
>
>Rene Verharen
>[EMAIL PROTECTED]
>http://www.verharen.net
>
>
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


-- 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to