one4k4 has asked for the wisdom of the Perl Monks concerning the following question:
The real question here is with the ()'s. Do I need them for a cgi script? I know I could try it without, and it'll work. So maybe the real-real question here is, can somebody explain what happens to $_ and @_ when you have a empty ()'s in the declration of a function?sub cgi_sub(){ print $_[0]; } sub mod_perl_sub { print $_[0]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl and function declrations
by arturo (Vicar) on Apr 17, 2001 at 23:15 UTC | |
by one4k4 (Hermit) on Apr 17, 2001 at 23:23 UTC | |
|
Re: mod_perl and function declrations
by jwest (Friar) on Apr 18, 2001 at 00:34 UTC | |
|
Re: mod_perl and function declrations
by petdance (Parson) on Apr 18, 2001 at 01:17 UTC | |
|
Re: mod_perl and function declrations
by repson (Chaplain) on Apr 18, 2001 at 18:38 UTC |