[Chicago-talk] views on a quandary...

Steven Lembark lembark at jeeves.wrkhors.com
Sat Sep 13 17:42:57 CDT 2003


>> before you go writing this code, please take a look at the -i command
>> line option.
>
> I will, thank you!

Since logfiles tend to be internally delimeted (e.g., syslog) you
might also save some code w/ perl -a. This gives you a #! like:

    perl -n -i~ -a

(-i requires -n or -p last I looked). Nice thing about -a is that
the input line is broken up on whitespace (or your delimeter of
choice) internally, which can save a bit of overhead if you really
do need to process the line positionally.


-- 
Steven Lembark                                            2930 W. Palmer
Workhorse Computing                                    Chicago, IL 60647
                                                         +1 888 910 1206



More information about the Chicago-talk mailing list