in reply to passing $_ to my function

Tell me, please, what's wrong with simply using:
for my $i (keys %online_users) { if (policy_is_expired($i)) { logoff_user($i); } }
Or just continuing to use $_?

Implanting a work-around is just adding unneeded code.

Replies are listed 'Best First'.
Re x 2: passing $_ to my function
by Sweeper (Pilgrim) on Oct 01, 2002 at 05:43 UTC
    Implanting a work-around is just adding unneeded code.

    In addition, it is a waste of CPU time (cf Nicholas Clark's talk in Munich)

    Update: this talk is available at http://www.ccl4.org/~nick/P/Fast_Enough.