| PLEX86 | ||
|
How to get the number of Elements in a Matrix MultiDimisional arrayI would like to thank everyone in advance for taking the time to look at my code below. I believe the term for the variable type I'm trying to manipulate is called matrix. It's rather new to me, and I'm appreciative of any input on the proper nomenclature. I know that you can evaluate the number of elements in a normal "one to figure out how to get the number of elements from my "multi dimensional" array, and having problems in the process. I believe the code below might shed light on where my confusion exists, as it produces errors which might be obvious to someone a little more experience. Where I attempt to output the number of elements per day I get "ARRAY(0x903a2a0)" instead of a number. Where I try to itemize the list ("They are:") the output is blank. Thanks in advance for any comments on this matter. Code begin: --------------------------------------------------------- #!-usr-local-bin-perl use warnings; use strict; use DBI; use CGI qw(:standard); # The week is categorized into days and items per day $week00 = "Process Agenda 1"; $week01 = "Process Agenda 2"; $week02 = "Process Agenda 3"; $week10 = "Process Agenda 1"; $week11 = "Process Agenda 2"; $week20 = "Process Agenda 1"; print "So far there are a total of $numdays days scheduled.-n"; PISED OFF about cifs mounts wguest logons do not work Ignoramus28822 I have no idea unfortunately..... and I'm new to linux, and I'm trying to learn... # Out put a list of each agenda item per day. Observations on a few distros**This IS A PRIME EXAMPLE OF WHY LINUX IS NOT On Mon, 10 Apr 2006 14:44:45 -0400, Clock King I don't need 500 'different versions' of it. And to be accurate there are, according to distrowatch.com, about 360 active Linux distributions. Personally, I... my $daycount = 0; { my $itemsperday = $week$daycount; print "On day $daycount we have $itemsperday to do. They are:-n"; my $count = 0; { print "$week$daycount$count-n"; $count++; } $daycount++; } --------------------------------------------------------- Code end: -- L. James -- ------------------------------------ L. D. James www.apollo3.com-~ljames
|
||||
PISED OFF about cifs mounts wguest logons do not work Linux groups from Newsgroups The #1 Usenet Provider on the Internet
Second question about Microsoft Software Update Service equivalent in linux |
||||