in reply to
Re: subroutine help
in thread
subroutine help
A few evil examples:
Ca(OH)
2
CH
3
CH
2
CH
2
CH
2
CH
2
CH
2
CH
3
CH
3
[CH
2
]
5
CH
3
CH
3
[CH
2
]
n
CH
3
- not really calculable, but should be parsable
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
Comment on
Re^2: subroutine help
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.
[reply]
In Section
Seekers of Perl Wisdom