Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Perl Recursion

by jwkrahn (Monsignor)
on Sep 27, 2011 at 00:00 UTC ( #927979=note: print w/replies, xml ) Need Help??

in reply to Perl Recursion

my @a=`awk '\$1 ~ /$_[0]/' |cut -f 2,3|sort|uniq`: foreach (@a){ my @b=split(/\t/,$_); if($b[1] eq 'Activation'){

You don't chomp the lines from so "Activation\n" will never be equal to 'Activation'.

You should probably store the contents of in a hash instead of using an external process to read the same file multiple times.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927979]
[ambrus]: "could evacuate to open schoolyard and then call or go back to school" => wait what? like power cycling the school building by removing all the kids and then reentering them? how would that fix the problems?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-01-18 12:34 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (161 votes). Check out past polls.