in reply to Re: Different behaviours in the similar scripts
in thread Different behaviours in the similar scripts

Thanks Steive, It is working now. Identation is a big problem for me. I am very poor in the basics of the indentation like which braces will come when.. Do you have any guide which has some documentation on how to do that.
  • Comment on Re^2: Different behaviours in the similar scripts

Replies are listed 'Best First'.
Re^3: Different behaviours in the similar scripts
by fishmonger (Chaplain) on Aug 06, 2015 at 21:19 UTC
    You can use perltidy to cleanup the formatting.
Re^3: Different behaviours in the similar scripts
by kcott (Archbishop) on Aug 07, 2015 at 11:23 UTC
    "Do you have any guide which has some documentation on how to do that."

    As part of the core documentation which comes with Perl: perlstyle - Perl Style Guide.

    — Ken

Re^3: Different behaviours in the similar scripts
by 1nickt (Canon) on Aug 06, 2015 at 21:58 UTC

    It depends a bit on whether your bosses have a syntax style that you must follow. If you are free to choose, I suggest paying attention to the syntax of the Perl code you read on this site, and also the source of modules you use. You should find that one style or another is easiest for you to read and understand, and that should be the basis of the choice.

    See this article for some examples of formal styles.

    The way forward always starts with a minimal test.
      The utility perltidy (recommended by FishMonger) can be configured for almost any style requirement.
      Bill