in reply to Re: Writing a new file in Perl
in thread Writing a new file in Perl

Is it possible that each trace route is separated by some kind of word or something so that when I am processing them they can differentiated from one another. Actually I am mapping them, therefore they need to be differentiated from each other.

Replies are listed 'Best First'.
Re^3: Writing a new file in Perl
by aaron_baugher (Curate) on Jul 07, 2012 at 22:35 UTC

    Well, we can't tell you that without seeing a sample file with more than one traceroute in it. But I suspect you could split the records on something, yes. For instance, splitting your file on the string "Tracing route to" looks like it would probably break the file into chunks containing no more than one trace each.

    Aaron B.
    Available for small or large Perl jobs; see my home node.