> Hi,>
> Are there 'aliases' in perl? For example, if I have a Korn shell script and
> a function named "increaseCost()", I can do this: "alias
> decreaseCose=increaseCost" (passing a parameter in)..... of course this is a
> simplified example of what I want to do, but the point is to make > it
> self-doenting.Indeed it is. Such as:> Maybe what I need is a "reference" ?
my $increaseCost_ref = \&increaseCost;
To call it:
$increaseCost_ref->($some_arg);
Cheers!
__________________________________________________ ______________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
[url]http://www.messagelabs.com[/url]
__________________________________________________ ______________________
Bookmarks