in reply to Re: Prototypes and hand-written MMD (Ah! No!!)
in thread Prototypes and hand-written MMD
I have a function defined as so:
I want to also support the following usage: foo 'Bar' is { ... }; which requires a ($$) prototype. (You are correct in that it's $$, not $&.)sub foo (&) { my ($sub) = @_; ... } # Usage: foo { ... };
Is there a way to do it using the same function name or do I have to use two different functions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Prototypes and hand-written MMD (Ah! No!!)
by diotalevi (Canon) on Jan 10, 2006 at 16:49 UTC |