Help for this page

Select Code to Download


  1. or download this
    sub foo {}
    
    foo(@foo{qw/a b/});
    print keys %foo; # ab
    
  2. or download this
    use warnings;
    sub context { defined $_[0] ? $_[0] ? 'list' : 'scalar' : 'void' }
    ...
    Useless use of private variable in void context
    void
    scalar