http://qs1969.pair.com?node_id=761251


in reply to Re^3: Reading and producing variable lists (w/o hashes!)
in thread Reading and producing variable lists (w/o hashes!)

oo crazy cool.. Two questions though: what might be a 'good' place to use this? and does it run under 'strict'?
........
Those are my principles. If you don't like them I have others.
-- Groucho Marx
.......
  • Comment on Re^4: Reading and producing variable lists (w/o hashes!)

Replies are listed 'Best First'.
Re^5: Reading and producing variable lists (w/o hashes!)
by almut (Canon) on May 01, 2009 at 10:37 UTC
    and does it run under 'strict'?

    It would run under use strict, if you declare the variables, e.g.

    my ($apple, $pear, $orange); # lexicals # or our ($apple, $pear, $orange); # lexically scoped package variabl +es # or use vars qw($apple $pear $orange); # global package variables
    what might be a 'good' place to use this?

    There are almost certainly better ways to approach virtually any typical problem you might have... :)