in reply to Forward declaration of subs
Hi perlaintdead,
With forward declaration of subroutine, you can omit the parentheses usage like thus:
Without the forward declaration one would have to douse warnings; use strict; sub printer; printer 'hello','world','again'; # NOTE HERE sub printer{ print $_,$/ for @_; }
#Update: ++BrowserUk faster fingers!!!... printer(...); ...
|
---|