Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Re: Re: virus log parser

by crazyinsomniac (Prior)
on Jul 03, 2002 at 08:56 UTC ( #179098=note: print w/replies, xml ) Need Help??

in reply to Re: Re: virus log parser
in thread virus log parser

First of all, the construct foreach(qw(name to file action virus)) { $gCurRec->{$_}=''; } can be expressed very succinctly using so called hash slices, i.e. my @columns = qw(name to file action virus); @{ $gCurRec }{ @columns } = ('') x @columns;
Bah, slices are so unattractive ( hi hi hi, he he he he ;D)
$gCurRec = { map { ( $_ => "" ) } qw{ from to file action virus } };

Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://179098]
[Tanktalus]: Discipulus: I'd have tried my hand at it, but OP said something about not replying if you're experienced at regexes :)
[Tanktalus]: And now that I've been using regexes in C++, I'm thinking that might apply :)

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-12-18 23:20 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (501 votes). Check out past polls.