On Thu, 18 Oct 2001, Rene Verharen wrote:

> 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.

$text =~ s/^0//;

-- Brett

                                          http://www.chapelperilous.net/
------------------------------------------------------------------------
MMM-MM!!  So THIS is BIO-NEBULATION!


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

Reply via email to