> From: "Wiggins d Anconia" <[EMAIL PROTECTED]> > > I like most of this answer. I would add that you should drop the > > declarations of the subs, they are unneeded in Perl and can break some > > "features". This will help to some extent depending on your calling > > order. > > ??? > > 1. The declarations are and are not unneeded. Try to remove the > declaration from this piece of code: >
'not unneeded'...? > sub foo; > > foo 1, 2, 3; > > sub foo { > print "called foo(" . join(', ', @_) . ")\n"; > } > > Until you either declare or define a subroutine you have to put > braces around its parameters to convince Perl that there will someday > be a subroutine with that name. > Right, which was my gentle push towards him finding the answer to his own question, and eventually seeing the value of libraries/modules. > 2. What features do you mean? Noone's talking about prototypes here! > We weren't, but we might have eventually... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>