![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Forcing list context of passed parametersby Sidhekin (Priest) |
on Sep 28, 2007 at 21:42 UTC ( #641618=note: print w/replies, xml ) | Need Help?? |
A prototype is not just documentation. Don't use it if you don't mean it! Having said that, here are two suggestions:
Since you consider the prototype valuable as documentation, you will likely value the documentation of setting the first argument apart in the call as well.
While not recommended in this situation, it may be useful with arguments from other expressions, particularly function calls:
But as you've been told, it is likely better to just give up this use of prototypes.
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|