in reply to Re: subroutine help
in thread subroutine help

A few evil examples:

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^3: subroutine help
by space_monk (Chaplain) on Nov 29, 2012 at 09:13 UTC
    Yes, alright my solution is lightweight, only getting the second of your examples right, lets use Chemistry::Mol to get it right properly :-)
    A Monk aims to give answers to those who have none, and to learn from those who know more.