http://www.perlmonks.org?node_id=676278

So I've charged my cell phone a ton of times, but just now made the connection: when you plug it in, it always turns the volume to a certain level, and when you unplug it, the volume goes back to whatever it was before (including Vibrate).

Now that I know Perl:

package Phone::Cell; sub charge { local $volume = 4; # Charge... }

This goofy message brought to you by nefigah, the letter 'F', and viewers like you.


I'm a peripheral visionary... I can see into the future, but just way off to the side.

Replies are listed 'Best First'.
Re: My Cell Phone Utilizes Dynamic Scoping
by sundialsvc4 (Abbot) on Mar 27, 2008 at 21:20 UTC

    { $self->goto($self->find_nearby('tall_bridge')); $self->drop_into('the_river', $my_phone); $self->say("Good Riddance!\n"); $my_phone = new Apple::iPhone(); }
    :-D

      I'm getting a ton of warnings when I try to run this and my phone just auto-dialed 911.