On Wed, Sep 04, 2019 at 02:17:36PM +0800, Wesley Peng via beginners wrote:
> Hello,
This is actually two different questions with two different answers:
> How to make a function alias in perl?
$ perl -E 'sub b { say 67 } *says = \&b; says(83)'
67
$
>
; for example, says() is alias to print().
>
> sub says
> {
> print "$_\n" foreach @_;
> }
>
>
> On Wed, Sep 4, 2019 at 1:17 AM Wesley Peng via beginners
> wrote:
> >
> > Hello,
> >
> > How to make a function alias in perl? for examp
> for example, says() is alias to print().
sub says
{
print "$_\n" foreach @_;
}
On Wed, Sep 4, 2019 at 1:17 AM Wesley Peng via beginners
wrote:
>
> Hello,
>
> How to make a function alias in perl? for example, says() is alias to
> print().
>
> thank
https://stackoverflow.com/questions/4512094/aliasing-a-function-in-perl
On Wed, Sep 4, 2019 at 2:17 PM Wesley Peng via beginners
wrote:
> Hello,
>
> How to make a function alias in perl? for example, says() is alias to
> print().
>
> thanks.
>
> --
> To unsubscribe,
Hello,
How to make a function alias in perl? for example, says() is alias to
print().
thanks.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/