Hello zing,

When I take your original script, make the change I described, and run it on the file “p17226.csv” (which I downloaded from http://qfs.mobi/f1508588), I get 848 lines of output which begins and ends as follows:

16:31 >perl orig.pl Enter file name: p17226.csv M19 : M19<-Q, P I_1 M15 : M15<-Q, Pl I_2 M23 : M23<-Q, Pl I_2 M11 : M11<-Q, Pl I_2 M22 : M22<-Q, Pl I_2 M31 : M31<-Q, Pl I_2 M27 : M27<-Q, Pl I_2 M24 : M24<-Q, Pl I_2 M5 : M5<-Q, Pl I_2 M12 : M12<-Q, Pl I_2 ... M567: M567<-M73<-M1<-Q, E.E.E IV_39 M560: M560<-M73<-M1<-Q, E.E.E IV_39 M559: M559<-M73<-M1<-Q, E.E.E IV_39 M561: M561<-M73<-M1<-Q, E.E.E IV_39 M550: M550<-M73<-M1<-Q, E.E.E IV_39 M549: M549<-M73<-M1<-Q, E.E.E IV_39 M569: M569<-M73<-M1<-Q, E.E.E IV_39 M563: M563<-M73<-M1<-Q, E.E.E IV_39 M568: M568<-M73<-M1<-Q, E.E.E IV_39 M562: M562<-M73<-M1<-Q, E.E.E IV_39

Your output format has changed, have you altered the script since first posting? If not, it looks as though you’re going to have to debug the script yourself, on your own machine, to find out exactly what’s going on. The tutorial perldebtut will help you to get started.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


In reply to Re^3: Perl code for finding shortest path not working on large files (chomp) by Athanasius
in thread Perl code for finding shortest path not working on large files by zing

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.