Hello
I have to store 2 arrays out of the lines starting with part after the line of the CNTC 205
CNTC 205
PART 1 2
END
PART 4
END
in other words i need to make a set of parts
@first_part of CNTC 205= 1 2
@second_part of...
Hello
I want to print the elements of a big array,in such a way each 10 elements on a line and each elements has a 10 digits space %10d.
thanks alot in advance
Kozhaya
If I have read a file as an array (probably not a good way for memory in case of big files). How can I move to the next line after matching a word in the if statement in this case?
@data=<DATA>;
foreach $elem (@data) {
if ($elem= ~ m/^RBODY /)
{
exp; #storing info from $elem
#how can i...
I have a file containing something like that
NOD 111:119
NOD 11 12 13 14 15 16 17 18 19 20
NOD 101:109 91:100
DELNOD 21:29 2 3
111:119 means nodes 111 112 ... 119
so I have to sort the (array or hash) of NODs then romove the array of DELNOD...
Hello, I have a file like that
FUNCT_CURVE curve_id_num 5
abs coord
1 4
2 5
6 7
7 9
8 10
END
Small explanation: I have a text file I want to read from it and store the values of the abscissa and coordinate in a hash or array... note next to the line FUNCT_CURVE the number stands for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.