http://www.perlmonks.org?node_id=1004824


in reply to new way to code html?

Even after fixing all the syntax errors, I can't get your third and fourth code examples to produce the output you show. Is  @givearr tie-ed in some way? Can you please post complete, self-contained code, along with its output?

And yes, you have entered Side-Effect Heaven!

Replies are listed 'Best First'.
Re^2: new way to code html?
by Don Coyote (Hermit) on Nov 21, 2012 at 08:04 UTC

    Anomylous & others, yes sorry, the '@givearr =' assignment should have print as a rvalue.. and semi-colon after package declarations. I have updated, now the 3rd/4th example should work.