As an aside, Perl 5.10 and up, you can get the "say" command by enabling extended functions: perl -E 'say "hi mom" ' hi mom\n
https://perlmaven.com/what-is-new-in-perl-5.10--say-defined-or-state a On Wed, Sep 4, 2019 at 1:08 PM Andy Bach <[email protected]> wrote: > > > 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 > <[email protected]> wrote: > > > > Hello, > > > > How to make a function alias in perl? for example, says() is alias to > > print(). > > > > thanks. > > > > -- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > http://learn.perl.org/ > > > > > > > -- > > a > > Andy Bach, > [email protected] > 608 658-1890 cell > 608 261-5738 wk -- a Andy Bach, [email protected] 608 658-1890 cell 608 261-5738 wk -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
