#!/usr/bin /pe rl -w #This is the p erl camel $a nimal = "camel ; @features = ( "big feet", "h ump back", "big eyes") ; $ home = "desert"; &anima l(); sub animal { print "This is the mascot for perl, he is a ", $animal, ".\n"; p rint "camels have $featur e s[0] $ featur es[1] featu res[2 ] .\n" prin t "C amel s li ve i n the ", $ home, ".\n "; & bye( ); } sub bye { pr int "C amels are coo l!\n."}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Camel
by bassplayer (Monsignor) on Feb 13, 2004 at 16:57 UTC | |
by CloneArmyCommander (Friar) on Feb 13, 2004 at 17:27 UTC | |
by eyepopslikeamosquito (Archbishop) on Mar 04, 2004 at 12:02 UTC |