Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    
    say +(split ':')[0] while (<DATA>);
    
  2. or download this
    say FILEHANDLE LIST
    print FILEHANDLE LIST
    
  3. or download this
    $ perl -Mstrict -Mwarnings -E 'my @x = (1,2,3); say (@x)[1]'
    say (...) interpreted as function at -e line 1.
    syntax error at -e line 1, near ")["
    Execution of -e aborted due to compilation errors.
    
  4. or download this
    $ perl -Mstrict -Mwarnings -E 'my @x = (1,2,3); say STDOUT (@x)[1]'
    2
    
  5. or download this
    $ perl -Mstrict -Mwarnings -E 'my @x = (1,2,3); say +(@x)[1]'
    2