You create a symbolic reference like this:
Doesn't look like a symbolic reference, does it? But it is.
It isn't the creating of symbolic references that is a
problem; it is using symbolic references. You use a symbolic
reference just like you use a regular reference. So:
is where we have a problem. But it is only a problem if
$a doesn't contain a real (non-symbolic) reference. That
is why use of symbolic references (and not creation of
them) is only caught at run time.
Like I said elsewhere, "unsafe" doesn't make a lot of sense
to me in discussing strict.pm. strict.pm helps Perl to
catch things that are probably simple programmer mistakes.
By catching them explicitly, you usually save time in trying
to find the mistake and fix it.
(but my friends call me "Tye")
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||