|thrig||ScribbleJ: excess protein can be problematic for kidneys. Hence baby cow food being banned for human babies under one|
I'm working on a collection of "Larry Wall facs". Here's what I have so far:
1. Larry gets the colon.
|D_Fosco||is it possible to make a subroutine with subroutines in it?|
|rindolf||2. Larry Wall can understand the Perl code he wrote last year.|
|action||CPAN upload: ICal-QuickAdd-0.5_1 by MARKSTOS|
|CPAN||upload: ICal-QuickAdd-0.5_1 by MARKSTOS|
|perlbot||see "perlbot: references" and then http://www.shlomifish.org/lecture/Perl/Newbies/lecture3/refs_to_funcs/ and then "perlbot sicp".|
|D_Fosco||rindolf: how would i do that?|
|rindolf||D_Fosco: read what I showed you.|
D_Fosco: it's explained there.
And quite briefly.
|D_Fosco||ok thank you|
sorry got disconnected
what does this exactly do?
my($what, @array) = @_;
|payal_||is length of @_ assigned to $what|
and @array is undef
|thrig||why would that be?|
the () imply list context, not scalar context
|payal_||then what is assigned to $what|
|jonsmith1982||i always say S in my mind hehe|
|thrig||do you know what list context is?|
|payal_||thrig: now I think of it - NO|
this has troubled me a lot - made me gave up perl 2 times
can someone explain how this really work
|pasteling||"thrig" at 184.108.40.206 pasted "list vs. scalar context for payal" (10 lines, 191B) at http://sial.org/pbot/23769|
|payal_||my($what, @array) = @_;|
|jonsmith1982||i see it as an array being split into ($var1, $var2) another array kindof|
|payal_||I am just reading the pasteling|