I'm a long-time C programmer starting on Perl. I always begin by
assuming things are C-ish and discover that sometimes they aren't.
Here's a statement I'm wondering about that seems to be all over the
place in Perl. Generically:
$a = b() or c();
Does the "or" check an internal Perl program field, or the final value
of $a, or the return from b()? I think I'd understand it if someone
would tell me whether z() is executed in the following statements:
$a = 0 or z();
Is that the same as:
if ( $a = 0 ) {
z();
}
....and how about the simple:
a() or z();
Or am I still missing the point?
Regards,
Regards,
Kent Feiler
www.KentFeiler.com