Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Perl Python Partial Polyglot

by 1nickt (Abbot)
on Nov 24, 2018 at 14:48 UTC ( #1226259=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -wE 'my $h = {foo=>"bar"}; my $c = keys ${$h};'
    
    Experimental keys on scalar is now forbidden at -e line 1.
    Type of arg 1 to keys must be hash or array (not scalar dereference) a
    +t -e line 1, near "};"
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    $ perl -Mstrict -wE 'my $h = {foo=>"bar"}; my $c = keys $$h;'
    
    Experimental keys on scalar is now forbidden at -e line 1.
    Type of arg 1 to keys must be hash or array (not scalar dereference) a
    +t -e line 1, near "$h;"
    Execution of -e aborted due to compilation errors.
    
  3. or download this
    $ perl -Mstrict -wE 'my $h = {foo=>"bar"}; my $c = keys %{$h};'
    
  4. or download this
    $ perl -Mstrict -wE 'my $h = {foo=>"bar"}; my $c = keys %$h;'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2019-09-20 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (267 votes). Check out past polls.

    Notices?