in reply to string manipulation question
my $str = "a load of constant stuff..." . ($option && "optional bit in the middle ") . "loads more stuff";
update: Ofcourse davorg is correct. Why do I never learn to test my code before posting! :)
/dempa$option = 0; # Prints out the 0, not good. $option = ""; # This works. $option = undef; # Warnings with -w
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: string manipulation question
by davorg (Chancellor) on May 18, 2001 at 17:36 UTC | |
|
Re: Re: string manipulation question
by Anonymous Monk on May 18, 2001 at 19:06 UTC | |
by Anonymous Monk on May 18, 2001 at 19:10 UTC | |
by dempa (Friar) on May 19, 2001 at 01:36 UTC |