Next: Latex
Up: Perl
Previous: Operators
- $#var gives (length of array-1) (equivalently: the last
index of array since it starts at 0)
- for buffer flushing, set $|=1, rather than usual 0.
- Some inline syntax for running Perl directly from the UNIX prompt
without a .pl script file:
- >cat grbase | perl -lane 'next if( 1..1 ); print $F[21];'
| sort | uniq -c
- >cat grbase | perl -lane 'next if( 1..1 ); print $F[21]
if( $F[20] ne "M" );' | sort | uniq -c
Chris Paciorek
2006-04-02