thank you very much. this worked great. i'm finding perl impossible to learn "on the go" and i simply don't have a lot of time. i will be able to finish this now, i hope. :-)
I cannot say with certainty that every line has the same number of sets on it. I cannot say for sure how many integers are in each set. I do know that there are _probably_ at most 15 sets per line and that each set is a subset of the integers 0 through 30 or so...
thanks again,
m
Sorry for the confusion.
I am trying to compile a list of all the Sets which appear in this file. For example {0,1,2,3,4,5} is the first set in the first line. But if {0,1,2,3,4,5} appears later in the file, i do not want to keep track of it again. So in effect, I am making a set of the sets...
I am very new to perl, but have some familiarity with other languages, *nix, and mathematics. Here is my problem I was hoping someone could help me with.
I have a (rather large, about 56,000 lines) text file with each line formated as follows:
Set1, Set2, Set3,...,LastSet,
Notice that the...
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.