Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: limits

by jreades (Friar)
on Nov 28, 2002 at 10:45 UTC ( #216276=note: print w/replies, xml ) Need Help??


in reply to limits

Uh, you could use the numerical comparison... why are you using the ASCII comparison?

I think that there are some conceptual problems here that the following code might help:

my @number = (); for (my $i = 0; $i < @column_1; $i++) { if (($column_1[$i] >= 8 && $column_1[$i] <= 52) && ($column_2[$i] >= 98 && $column_2[$i] <= 202)) { push @number, join(' ', $column_1[$i], $column_2[$i]); } } foreach (@number) { print $_ . "\n"; }

If you're looking for something more subtle where the fuzziness of the match is unclear then you'd have to improve this approach substantially.

HTH

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://216276]
help
Chatterbox?
[Corion]: Whoops - more spam - I guess I'll have to collate a list and have them banned later today
[Corion]: Maybe I should bring my Github credentials to $work some day, just to open issues for blogs.perl.org ;)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-02-24 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (354 votes). Check out past polls.