in reply to Re^2: referencing list
in thread referencing list

imho, using symbolic refs is not advisable in production code for something this simplistic.

If you know when and why to use them, they are great, but they are generally reserved for very advanced uses. However, I really do like sauoq's take on the problem though ;)

Update: yes... under strict, their code will break. Kudos for having strict enabled to begin with.

Replies are listed 'Best First'.
Re^4: referencing list
by sauoq (Abbot) on Jun 06, 2012 at 11:02 UTC
    using symbolic refs is not advisable in production code for something this simplistic.

    These are not symbolic refs. These are aliases. There are good reasons to use aliases. Symbolic references are usually best avoided. This is an example of a symbolic ref:

    perl -le '$variable = 42; my $symref = "variable"; print $$symref;' 42

    -sauoq
    "My two cents aren't worth a dime.";