![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| matrix inverse (awk) | vesyyr | Shell Programming and Scripting | 0 | 12-14-2007 03:18 PM |
| need help-matrix inverse (awk) | vesyyr | UNIX for Dummies Questions & Answers | 0 | 12-14-2007 02:44 PM |
| PERL: How do i print an associative matrix? | foo.bar | Shell Programming and Scripting | 2 | 09-28-2007 09:06 AM |
| Regarding Dot Matrix Printing | aman_mlt | Linux | 0 | 02-23-2006 01:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi everybody,
I have a matrix called @matrix dinamically built in PERL, so I don't know its exact sizes. It is a 2-dimensional matrix, so its elements are for example: $matrix[0][0] $matrix[0][1] $matrix[1][0] $matrix[1][1] $matrix[2][0] etc... I know i can get the number of the rows of the matrix with the commands: $#matrix scalar @matrix $n_rows = @matrix but I don't know how to get the number of the colums of the matrix! I tried several ways like: $#matrix[0] scalar @matrix[0] $n_cols = @matrix[0] but they haven't worked. Can someone help me please? Thank you in advance, Sergio. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|