in reply to WHAT IS WRONG TO PASS PARAMETER TO THE ARRAY?

I'm intrigued as to how on earth you manage to call the sub - it doesn't have a name and as the anon sub isn't recorded, isn't indirectly callable i.e. callable by reference !!

Having said that, when uncommented, line 5 completely overwrites the default values for @partofcookie set-up in line 4 and it is (to me) unclear as to the argument list when the sub is called so suggesting a way out of your dilemma is, without further details, somewhat problematic.

BTW, pls don't shout your question ;-/

A user level that continues to overstate my experience : -))

Replies are listed 'Best First'.
Re^2: WHAT IS WRONG TO PASS PARAMETER TO THE ARRAY?
by Anonymous Monk on Aug 06, 2009 at 00:25 UTC
    hi Bloodnok the sub is the partial of template module . it is called global by the tempalate developer. then i make a name for that global . that is the sub name i believe. later i could insert <%global%> into the page. and it will automatically call the sub and run it .