Think about Loose Coupling | |
PerlMonks |
Re: Sub-setting an Arrayby 1nickt (Canon) |
on Sep 05, 2015 at 00:02 UTC ( [id://1141083]=note: print w/replies, xml ) | Need Help?? |
Hi kgherman, The following code, returns a value of 67 . . . This code doesn't compile. You should always use strict; and use warnings;, even in example code, then you won't forget to include something like the package that holds your max() ... In order to get the results you want from the array you have, you need: . . . I'm not sure what the rest of your code is for; please feel free to explain what you are really trying to do. Maybe you were trying to do something like this?
Upate: added example
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom
|
|