[BNE-PM] you lot have all gone quiet again? (Fwd)

Anthony Thyssen anthony at cit.gu.edu.au
Wed Sep 18 01:39:18 CDT 2002


Derek Thomson on  wrote...
| Anthony Thyssen wrote:
| Horizontal columns is easy:
| 
| perl -le 'print for 1..100' | perl -ne 'chomp; print "$_\t"; print "\n" 
| unless $. % 10'
| 
This will fail if strings are occasionaly longer than 8 characters :-)

You are right It actually isn't easy as a one liner.
A very complex issue that even ls often does badly at.

| Yes, that's breaking the rules for one-liners - no modules (*everything* 
| can be done in one line if you've got CPAN!)
| 
Modules (standard perl modules that is) are in my oppion permissible in
perl one liners ;-)

Never heard of Array::PrintCols!  Not a standard perl module.
I'll have to look it up.


  Anthony Thyssen ( System Programmer )    http://www.sct.gu.edu.au/~anthony/
 -----------------------------------------------------------------------------
         The universe is run by the complex interweaving of 3
         elements; energy, matter, and,    enlightened self interest.
                                         --  Ambassador G'Kar - Bablyon 5
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.sct.gu.edu.au/~anthony/



More information about the Brisbane-pm mailing list