in reply to Function Prototypes
You declare the types of variables in your specification, not what they are called. The break-out phase is separate, not unlike way old-school K&R C.sub func($@) { my($x,@y) = @_; }
#!/usr/bin/perl -w use strict; use VariousModules; use More::Modules; # -- Globals ------- my $style = "Round"; # -- Functions ------ sub something { my ($new_style) = @_; } # -- Main Code ------ my $thing = something($style); something_else($thing); # -- End ------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Function Prototypes
by dragonchild (Archbishop) on Jul 03, 2001 at 16:53 UTC | |
by davorg (Chancellor) on Jul 03, 2001 at 17:26 UTC |