Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Apr 2007 20:56:50 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Garrett Cooper <youshi10@u.washington.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: script perl with sed command
Message-ID:  <20070408175650.GB1672@kobe.laptop>
In-Reply-To: <4618992D.5050106@u.washington.edu>
References:  <4617B954.7010507@steelbox.org> <20070407171120.GA70957@kobe.laptop> <4618992D.5050106@u.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-04-08 00:26, Garrett Cooper <youshi10@u.washington.edu> wrote:
> Giorgos Keramidas wrote:
> > Try using Perl only, instead of forking sed(1), like this:
> > [...]
> > | sub supfile_set_default_host($$);
> > | sub supfile_set_default_host($$)
> > | {
[...]
> Interesting. Is that old perl syntax (v4, etc)? Just curious because
> most of the documentation and examples switched to:
>
> sub supfile_set_default_host
> {
>
> syntax as opposed to:
>
> sub supfile_set_default_host($$);
>
> sub supfile_set_default_host($$);
> {

That's actually a function prototype.  Prototypes are explained in:

    man perlsub

in far more detail than I could ever describe in an email message :)

HTH,
Giorgos




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070408175650.GB1672>