Hi Peng, On Fri, 26 Jan 2018 15:33:43 -0600 Peng Yu <pengyu...@gmail.com> wrote:
> Hi, $# is deprecated. Could anybody let me know what is the substitute for it? > > https://perldoc.perl.org/perlvar.html > > $# was a variable that could be used to format printed numbers. After > a deprecation cycle, its magic was removed in Perl v5.10.0 and using > it now triggers a warning: $# is no longer supported. > according to https://metacpan.org/pod/release/NWCLARK/perl-5.8.3/pod/perlvar.pod - it seems it used printf/sprintf format so just use those explicitly where needed. See: * http://perldoc.perl.org/functions/sprintf.html * http://perl-begin.org/uses/text-generation/ e.g: print "I am ", sprintf("%e", $age), " years old."; Regards, Shlomi -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/bits/New-versions-of-the-GPL/ A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort. — Herm Albright (via On Gossamer Wings) Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/