Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • No more local? (Score:2, Interesting)

    by tmtm (2563) on 2002.02.14 6:04 (#4481) Homepage Journal
    How do you propose to replace the extremely useful feature of 'local' which allows for changing single elements of hashes or lists only within the current scope. This is very useful in many places, particularly tests:

    e.g.

    my %args = (
      username => 'Foo',
      password => 'Bar',
    }

    {
      local $args{password} = 'Barr'
      # test that login fails
    }

    Tony