Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hello again sandeepda, I’m sorry, but I don’t understand what you are asking. The only thought that comes to mind is that you may be unfamiliar with Perl’s special DATA filehandle. But I used that only for convenience. If you already have the data in an array, you would adapt the opening of my script as follows:
On the other hand, if the data is in a file (named, say, “ports.dat”), then you would begin like this:
If this doesn’t answer your question, please explain what you are asking with your version of the code together with sample input and the output you want. See How do I post a question effectively? Hope that helps,
In reply to Re^3: Need help in parsing an input
by Athanasius
|
|