CPU: Perl, Fall 2005 Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables #42

Implicit Return

$foo = 40;
$bar = 6;

sub foo_plus_bar {
  print "Wondering what foo plus bar is?\n";
  $foo + $bar;
}
Copyright © 2005 Ian Langworth