Because, i don't understand it, so i cannot adapt it to my real case.
i just simplify it
real case is a bit different, and i don't know how to adapt your perl script:
1) in your script how to replace "1:m 2:a 3:h 4:x" by a variable ( a shell variable" liste_order which I prepare in advance.
2) Unstead of a file "liste" my input came from another script execution.
Let's say "command.sh"
How, can I use your perl with the ouput of "command.sh" unstead a file "liste"
( i cannot put a outout of command.sh on a liste file for many reason)
With shell i can adapt any solution to my cadr, with perl i cannot ....
Thanhs in advance.
Many, many thanks.
I have a last question :
In real case, I will compare "1:m" with input line begining with "m" ( not equal to "m")
how can I do it ?
This is my last question and thank you very much