so wouldn't the language be a trip if subroutines were written just like the glob assigments they are:$ => SCALAR @ => ARRAY % => HASH
instead of&add = ( shift + shift ) ;
sub add { shift + shift }
note for some reason, I couldn't write &add within a code tag.. here's what happens:
&add
Edit: chipmunk 2001-09-09
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A subroutine is a reference to a list of statements
by japhy (Canon) on Sep 09, 2001 at 21:52 UTC | |
by princepawn (Parson) on Sep 09, 2001 at 22:45 UTC | |
by japhy (Canon) on Sep 09, 2001 at 22:49 UTC | |
by premchai21 (Curate) on Sep 09, 2001 at 23:12 UTC | |
by ariels (Curate) on Sep 10, 2001 at 12:26 UTC | |
|
Re: A subroutine is a reference to a list of statements
by Maclir (Curate) on Sep 10, 2001 at 00:57 UTC | |
|
Re: A subroutine is a reference to a list of statements
by t'mo (Pilgrim) on Sep 10, 2001 at 17:40 UTC | |
|
Re: A subroutine is a reference to a list of statements
by chipmunk (Parson) on Sep 10, 2001 at 19:02 UTC |