in reply to Re: header - javascript
in thread header - javascript

} else { # No other page created it, so create it now... my @otherBlocksOfCode; # <===== lexically scoped to else block push(@otherBlocksOfCode, {-type=>"text/javascript", -src=>"/path/file1 +.js"}); }
Your else block is the containing block for the my @otherBlocksOfCode;. When the else is completed, that variable no longer exists. In other words, if you remove the my @otherBlocksOfCode; line, it should work how you expect.

--MidLifeXis