August 1999 | Return to the Perl Hardware Store | Slide #27 |
Temptation: declare logical like this:
sub logical ($)
so you can say
print logical $struct, "\n";
Don't do this, because then this won't work:
print logical $struct1, $struct2, "\n"
Instead, fix logical to handle multiple arguments and to return plain strings unchanged.
Next | Copyright © 1999 M-J. Dominus |