in reply to regex to substitute 3 stars at beginnning of string with none?

Ready to kick yourself?

Change $answer = s/$HAIR//; to $answer =~ s/$HAIR//;

---
I'm too sexy for my .sig.

Replies are listed 'Best First'.
Re: Re: regex to substitute 3 stars at beginnning of string with none?
by suaveant (Parson) on Apr 23, 2001 at 21:44 UTC
    Heehee, I missed that one... very important distinction :)
                    - Ant
Re: Re: regex to substitute 3 stars at beginnning of string with none?
by princepawn (Parson) on Apr 23, 2001 at 21:42 UTC
    Thanks. That works perfectly.

    -- That light at the end of the tunnel is the headlights of an approaching train.