Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Deparse -wE "say scalar('a', 'e', 'i', 'o', 'u');"
    Useless use of a constant ("a") in void context at -e line 1.
    Useless use of a constant ("e") in void context at -e line 1.
    ...
    use feature 'current_sub', 'evalbytes', 'fc', 'say', 'state', 'switch'
    +, 'unicode_strings', 'unicode_eval';
    say scalar('???', '???', '???', '???', 'u');
    -e syntax OK
    
  2. or download this
    ## a literal list in list context
    $ perl -le " print( qw/ a b c d / )"
    ...
    ## null list in list context discards (the array kind of list )
    $ perl -le " @f = qw/ a b c d /; print( () = @f )"