Menu

#4 Add prototyping support to methods

open
nobody
None
5
2005-05-11
2005-05-11
Anonymous
No

I prefer to prototype all my methods like so:

sub foo($;$) {
my ($a, $b) = @_;
}

Currently the regexp you have in
Html::Renderers::PerlModule::getSubroutines only picks
up methods with no prototyping at all. To fix this
simply change the regexp from

/^([\w\d]+)/

to

/^([\w\d]+(?:\([\$;\@\%]*\))?)/

Love the tool. Thanks for your work on this.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.