Search Results

Search: Posts Made By: foo.bar
3,527
Posted By foo.bar
Hi zedex, supponing that the file you are...
Hi zedex,

supponing that the file you are reading is called 'temp', you can use this code to get both numbers in brackets:



open(FILE, "< temp"); ...
5,357
Posted By foo.bar
Yes they are strings. Thank you very much...
Yes they are strings. Thank you very much cbkihong!

The code you posted nearly works (there were some typing errors). I post the correct code:


foreach $key1 (keys %matrix) {
foreach...
5,357
Posted By foo.bar
PERL: How do i print an associative matrix?
Hello guys,

I have in PERL an associative 2-dimensional array, called matrix. The array (actually the matrix) is made up like this

matrix[a][c] = x;
matrix[a][d] = y;
matrix[b][c] = w;...
3,212
Posted By foo.bar
Great! It works! I just needed the {} brackets!...
Great! It works! I just needed the {} brackets! :p Thank you so much kahuna
3,212
Posted By foo.bar
PERL: How do I get both sizes of a matrix?
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]...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 05:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy