Help for this page

Select Code to Download


  1. or download this
    $ perl -MO=Deparse
    $f= grep {/f/} @array ? 1 : 2;
    <EOF>
    $f = grep({/f/;} @array ? 1 : 2);
    
  2. or download this
    $f= grep( /f/, @array ) ? 1 : 2;
  3. or download this
        left        terms and list operators (leftward)
        [...]
        right       ?:
    ...
    
            open HANDLE, "filename"
                or die "Can't open: $!\n";