Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Python tricks

by xiaoyafeng (Deacon)
on Dec 19, 2018 at 07:21 UTC ( [id://1227443]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Python tricks
in thread Python tricks

No, it's not perlish and please don't use it any more.

$# is long deprecated, and will throw exception when using on 5.30 soon.

Thank syphilis for pointing out my misunderstanding!





I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Replies are listed 'Best First'.
Re^4: Python tricks
by syphilis (Archbishop) on Dec 19, 2018 at 07:37 UTC
    $# is long deprecated

    It's true that the special perl variable $# is deprecated, but hippo is using "$#" in a different, quite allowable, context:
    C:\_32>perl -le "print $#;" $# is no longer supported as of Perl 5.30 at -e line 1. C:\_32>perl -wle "@x=(7,8,9);print $#x;" 2

    Cheers,
    Rob
Re^4: Python tricks
by pme (Monsignor) on Dec 19, 2018 at 08:29 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1227443]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found