.--- On Sat, 11 Mar 2006, Bradley C Bailey wrote:
| Try adding a "no strict;" line to your component's <%init> block to
| disable the pragma for only that component. I've never tested this, so I
| do not know if it will work or not.
`---
Best is to use:
no strict 'refs';
only on the smallest portion of code that you can get away with. If
you need it throughout a longer section and there seems to be no
convenient surrounding block to put the no strict pragma inside, you
can always add a named block so that the section really stands out:
NO_STRICT_REFS: {
no strict 'refs';
foreach my $thingy ( qw(foo bar baz quux) ) {
&grobbles(${$thingy});
}
}
That not only gets attention, but nicely limits the scope of the
pragma.
-- Patrick
--
.------ Patrick M. Jordan ------. Random unused band name:
| Systems/Network Administrator | Partially Dismantled
`----- Antistatic Matrix -------'
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users