|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hi
I am working with results held in an array of hash array refs and need to know:- a) how many refs are in the array, or b) at least if there are ANY results in the array Can anyone help? |
|
#2
|
|||
|
|||
|
If you want to know how many refs are in the array, you can grab it with $#array to get the size of the array. That'll just tell you how many references are stored in the array (a reference is a scalar, though it may point to non-scalar data). You should probably take a look at the perldoc on references -- perldoc perlref, if I remember correctly. Also, buy a copy of Programming Perl -- there's no excuse not to, it's an absolutely excellent book -- and read chapter 4.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > contents of an array of hash arrary refs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|