hi,
i came across this statement while reading Perlop. I don't understand how %s
is substituted w/ "s" or w/o "s" depending on the no. of dogs. %s is a hash.
how is it associated w/ the ?: operator?
it prints " i have 0 dogs." but if i change 1 to 0, it prints "i have 0
dog."
grateful for your time.
printf "I have %d dog%s.\n", $n,
($n == 1) ? '' : "s";
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]