in reply to Re: Re: string manipulation question
in thread string manipulation question

!! does wonders too.
my $str = "a load of constant stuff..." . (!!$option && "optional bit in the middle ") . "loads more stuff";

Replies are listed 'Best First'.
Re: Re: Re: Re: string manipulation question
by dempa (Friar) on May 19, 2001 at 01:36 UTC
    Aaah! I didn't know that trick. It's been said before and I'll say it again: You learn something new every day on PerlMonks.org. :)