in reply to Re: package DB penalty?
in thread package DB penalty?

The reference to @DB::args comes from perldoc -f caller.

Note that the OP's snippet comes from the Carp module as shipped with an oldish version of perl; that effect is achieved with rather different code in more recent versions (but using the same underlying mechanism) within Carp::caller_info() in Carp::Heavy.

Hugo

Replies are listed 'Best First'.
Re: Re: Re: package DB penalty?
by Rhandom (Curate) on May 15, 2003 at 14:26 UTC
    Interesting - I didn't know they had changed it on 5.8.0. Perl 5.6.0 still used it the same old way. The new way still actually uses the exact same mechanism - just using different programming technique.

    my @a=qw(random brilliant braindead); print $a[rand(@a)];