Jacob Meuser wrote:
> No variables in perl?!?!?!?
I think Rob meant that Perl subroutines don't have named arguments.
Whereas in (non-ANSI) C you would write:
myfunc(first, second, third)
{ /* ... */ }
In Perl you have to do the this.
sub myfunc($$$) {
my ($first, $second, $third) = @_;
# ...
}
Or, you can avoid the second line and use $_[0] or shift to access
$first without naming it.
My opinion: skipping the line that names the arguments is just ugly.
When other people do it, they make their code hard to read. (I very
rarely do it.)
> One other thing to note - perl is standard on almost every Unix-like
> OS. Python is not, at least not yet. I would venture to say that mod_perl
> is in wider use than mod_python, if you're looking for web usage.
I think I read that mod_php is the most popular Apache extension.
> The interactive interpreter in python is kewl though. It would be nice
> to have a kind of "perlsh" ... maybe for perl 6 ...
Try "perl -de0".
--
Bob Miller K<bob>
kbobsoft software consulting
http://kbobsoft.com [EMAIL PROTECTED]