#!/usr/bin/perl use strict; use warnings; sub JAPH { Just ();}sub Just { another ();}sub another { Perl ();}sub Perl { hacker (",\n");}sub hacker { print((join' ',map{(split'::',(caller(3-$_))[3])[1]}(0..3)),@_);}&JA +PH;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fun with caller()
by cristian (Hermit) on May 30, 2005 at 14:27 UTC |