Help for this page

Select Code to Download


  1. or download this
    $ alias perle
    alias perle='perl -Mstrict -Mwarnings -Mautodie=:all -MCarp::Always -E
    +'
    
  2. or download this
    $ cat > pm_11133571.dat
    234
    asdf
    quit
    ignore
    
  3. or download this
    ken@titan ~/tmp
    $ perle 'my $line; while ( (print "list of letters: "),$line=<>, $line
    + !~ /\s*quit|exit|q\s*$/i) { print "doing something with $line\n"}' p
    +m_11133571.dat
    ...
    
    list of letters:
    ken@titan ~/tmp
    
  4. or download this
    $ cat > pm_11133571_2.dat
    234
    asdf
    ignore
    
  5. or download this
    $ perle 'my $line; while ( (print "list of letters: "),$line=<>, $line
    + !~ /\s*quit|exit|q\s*$/i) { print "doing something with $line\n"}' p
    +m_11133571_2.dat
    list of letters: doing something with 234
    ...
     at -e line 1, <ARGV> line 3.
    list of letters: doing something with
    list of letters: