develooper Front page | perl.beginners | Postings from January 2018

What is the substitute for $#?

Thread Next
From:
Peng Yu
Date:
January 26, 2018 21:33
Subject:
What is the substitute for $#?
Message ID:
CABrM6w=2sadHt0f9XMXbJiqz59ZwKoRr4p+B=70UxkJgNftEkA@mail.gmail.com
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.

-- 
Regards,
Peng

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About