in reply to Re: Re: Re: Re: Re: Small question: Why can't I print "@-"?
in thread Small question: Why can't I print "@-"?
(I do agree that avoiding $"||"" is better; it's ugly and prevents joining with "0".)
Yeah it should be $" // "" or defined $" ? $" : "", but you wouldn't do that normally. :-)
But, your first suggestion made me shudder.
That was the point. :-) Seriously tho, that trick can be useful, interpolating constants (which really is calling subs) inside of a string, or more specifically a here doc can be nicer than precalculating and interpolating in.
First they ignore you, then they laugh at you, then they fight you, then you win.
-- Gandhi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Small question: Why can't I print "@-"?
by sauoq (Abbot) on Sep 24, 2003 at 01:13 UTC |