Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Searching in an array of arrays

by perl_seeker (Scribe)
on Nov 04, 2004 at 08:52 UTC ( #405118=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $range = $day->[1] - ($day->[1] % 5);
    
  2. or download this
    Operation `%': no method found,left argument in overloaded package XML
    +::XPath::Literal,right argument has no overloaded magic at C:\..\xmlr
    +ecord_parse.pl line 604.
    
  3. or download this
      my  $range = sprintf("%f","$day->[1]") - (sprintf("%
      f","$day->[1]") % 5);
    
  4. or download this
    [ 1-1-2004 15.0 ],
         [ 2-1-2004 15.5 ],
         [ 3-1-2004 16.5 ],
    ...
         [ 15-1-2004 28.0 ],
         [ 16-1-2004 28.8 ],
    
  5. or download this
    1-1-2004 5-1-2004    mild
    10-1-2004 14-1-2004  verywarm
    
  6. or download this
    15
    15.5
    ...
    25.5
    25
    25.8
    
  7. or download this
    print "$first_day $day->[0] ".$ranges{$range}."\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://405118]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2021-01-23 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?