Try it
- print "Foo plus bar is ", &foo_plus_bar, "\n";
Wondering what foo plus bar is? Foo plus bar is 46
- &foo_plus_bar;
- Nothing. Perl ignores the return value. We call it "void context."
- Does print have a return value, too?
| CPU: Perl, Fall 2005 | Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables | #43 |
Wondering what foo plus bar is? Foo plus bar is 46
| Copyright © 2005 Ian Langworth |