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
In reply to Re: string manipulation question
by dempa
in thread string manipulation question
by iakobski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |