in reply to Subroutines vs Modules
#! /usr/bin/perl -w sub of_all_things { print "You called me!\n"; #will print this when called $one*$two; #Here are the workings that will return value } $one = 12; $two = 10; $three=&of_all_things; #return value $four=2*$three; #using the return value print "2 x 120 = $four\n";
You called me! 2 x 120 = 240
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Subroutines vs Modules
by Argel (Prior) on Dec 30, 2005 at 21:22 UTC |