my @tokens = qw/report_time report_day reset read/; These can be abbeviated as: report_t report_d res rea Example of log file: report_t 14:09:33 PDT report_d Fri Jun 12 2015 res Resetting the time report_time 00:00:00 rea foo.bar Info: reading file foo.bar