in reply to Dot star okay, or not?

I'd suggest $scalar =~ s/^\s*//; $scalar =~ s/\s*$//; for that stuff... which'll get you of the hook for using dot-star. Death to Dot Star! is there for a reason, it's worth a moment of your meditation time :)

Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.

Replies are listed 'Best First'.
Re: Dot star okay, or not?
by Abigail (Deacon) on Jul 06, 2001 at 03:02 UTC
    There is no need to waste time removing empty strings from the beginning and the end. Just do what the FAQ says:
    $scalar =~ s/^\s+//; $scalar =~ s/\s+$//;

    -- Abigail