On Wed, Dec 21, 2011 at 10:37 AM, Shlomi Fish <shlo...@shlomifish.org>wrote:
> On Wed, 21 Dec 2011 09:48:19 -0600 > Robert Wohlfarth <rbwohlfa...@gmail.com> wrote: > > > On Tue, Dec 20, 2011 at 11:25 AM, Motaz SAAD <motaz.s...@gmail.com> > wrote: > > > > > I am a beginner in perl and I have segmentation fault in my code. the > > > code run perfectly for the until the third iteration and it produce > > > segmentation fault in the inner while loop in the 3rd iteration of > > > the outer while loop. > > > Would you please help me with hints. > > > Your help will be appreciated > > > > > > > If it were me, I would add "print" statements inside of the loop (see > > below). When it segfaults, you see which two "print"s the error comes > > between. Then move those closer and closer until you find the line > causing > > the error. That narrows down the scope. It looks like you started down > > that path already... > > You can achieve the same effect much more easily and without polluting your > code using Devel::Trace : > > * http://search.cpan.org/dist/Devel-Trace/ > Those are cool modules! Thanks for the tip. -- Robert Wohlfarth