gaal at forum2.org
Thu Nov 3 00:45:18 PST 2005
On Thu, Nov 03, 2005 at 09:22:58AM +0100, Madani, Srikanth, VF-DE wrote:
> Thanks Dov, Yosef, Mikhael and Gaal!
> > my $Done = (&what(0) or "etwas");
> works pefectly. I prefer not using the '&' and using '||' instead of
> 'or' and dispensing with the braces; the result:
> my $Done = what(0) || "etwas";
> works too.
Actually, since you're calling "what" with a constant, this
optimizations should also work:
my $Done = "etwas";
Gaal Yahas <gaal at forum2.org>
More information about the Perl