in reply to open a new xml file if line count exceeds 4000 lines

Need to create an xml file (parent($a)/child($b) in code) taking user input.Need to check if number of lines exceeds 4000.If so, close the file checking if proper parent -child are created ,close the xml file with proper tag & write the content in new file until $a times.You are right ! for now you can comment out strict!
  • Comment on Re: open a new xml file if line count exceeds 4000 lines

Replies are listed 'Best First'.
Re^2: open a new xml file if line count exceeds 4000 lines
by ww (Archbishop) on May 29, 2012 at 11:06 UTC
    Don't even think about commenting out use strict;

    strict will help you catch your mistakes. Without it, you're back to debugging by print statements (if you're lucky) and your Mark I eyeballs, if you're not.

      Debugging exclusively with print is so 1980s, doesn't everyone use a step through debugger today?

        Debugging exclusively with print is so 1980s, doesn't everyone use a step through debugger today?

        Absolutely, because they're so bulletproof and flawless :|