Hi
I have done this by using the following ...
for ($j = 1; $j <= $#model; $j++) {
print "row is $rowCounter, $model[$j], $devicesPerVariant[$j], $processor[$j], $memory[$j], <code>$softwareVersion[$j]\n";
within the for loop
and i know its reading the global variable and prints to the screen seen ..
row is 1, GSR, 2, GRP, 256Mb, 12.0(26)S3
row is 2, 6503, 13, WS-X6K-SUP2-2GE, 128Mb, 7.6(8)
row is 3, 6503, 10, WS-X6K-SUP2-2GE, 256Mb, 7.6(8)
row is 4, 2651, 68, MPC860P, 128Mb, 12.3(6)
row is 5, ERX1400, 11, SRP-10Ge, 512Mb, 5.1.3 S-2.0
row is 6, ERX1400, 1, SRP-10Ge, 384Mb, 5.1.3 S-2.2
row is 7, ERX1400, 36, SRP-10Ge, 512Mb, 5.1.3 S-2.2
row is 8, 6509, 16, WS-X6K-SUP1A-2GE, 128Mb, 7.6(8)
row is 9, 6509, 12, WS-X6K-SUP2-2GE, 128Mb, 7.6(8)
row is 10, 6509, 12, WS-SUP720-3BXL, 1Gb, 8.4(1)
row is 11, 10K, 54, PRE1-RP, 512Mb, 12.0(20050225:232036)
row is 12, 3550, 56, PowerPC, 64Mb, 12.1(11)EA1
row is 13, 3550, 26, PowerPC, 64Mb, 12.1(13)EA1c
row is 14, 6506, 14, WS-X6K-SUP1A-2GE, 128Mb, 7.6(8)
row is 15, 7206, 2, NPE-G1, 256Mb, 12.3(6b)
row is 16, 7206, 6, NPE400, 128Mb, 12.3(6b)
row is 17, 7606, 1, R7000, 256Mb, 12.1(22)E1
row is 18, 7606, 3, R7000, 512Mb, 12.1(22)E1
row is 19, ERX705, 40, SRP-5GPlus, 512Mb, 5.1.3 S-2.2
row is 20, ERX700, 4, SRP-10Ge, 512Mb, 5.1.3 S-2.2
row is 21, 3524, 2, PowerPC403, 8Mb, 12.0(5.2)XU
the spreadsheet still just prints the first row and how do you send a excel spread sheet to show what i mean
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.