[plug] A question for perl hackers

Leon Brooks leon at brooks.fdns.net
Wed Aug 21 23:18:37 WST 2002


On Wed, 21 Aug 2002 23:00, Lyndon Kroker wrote:
> I am trying to grab the filesize in bytes from a listing like:
>
>    310272 Aug 21 22:18 inbox
>   5193576 Jul  7 09:45 lyndon
>         0 Aug 12 09:58 mailing lists
>     32720 Jun 10 20:10 mchoice
>     46513 Aug 16 16:18 netvigator
>         0 Aug 21 20:04 outbox
>  10069208 Aug 21 20:04 sent-mail
>   2377093 Aug 21 19:33 trash

Pity you can't use (g)awk, 'coz that becomes:

    variable = $1

Huge. I'd be surprised - nay, mortified - if there wasn't a similarly simple 
way of doing that in PERL.

Cheers; Leon



More information about the plug mailing list