Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hi,

Just thought of this so writing it now. Like stated earlier, I tried Python first and then went back to Perl. Mainly because it allows me to add to my scripts easily than Python. I don't start with Flowcharts of how my script will work. I just write a small script and test it, then add some error checks and functionality and try to make it as generalized as possible. Perl allows me to do that. So typically, my scripts would begin with all the data and code in the same .pl file, about 15-20 lines in all, and then I keep adding little by little and it grows to about 300 lines, and by this time, the input data is separated into a file and the actual script is in a different file, and it's doing everything from, say checking if the supplied input has exactly 8 hex characters, and if the configuration file is where it is expected or not, and if the mail server is up or not, and so on and so forth.

I don't know about the future of Perl for large projects, simply because I have never worked on a large software project and given my nature of job, I don't think I'll ever be, but:

When it comes to cli based automation, that can extract text, filter it out and email it, or put stuff in an excel and create charts, Perl shines. Rather, it outshines and out performs Python, especially when it comes to using Regular Expressions to mangle and slice and dice text based output, which is 90% requirement of my job. My opinion is based on my limited use of both Perl and Python

Perl lets me do something like (my $i = 0; $i < 10; $i += 1.25), which I really badly needed at that time, and still do, because I just have to loop over things that way to get my job done.

It has ternary operators, which is something that I really like and was not available in Python back when I tried it out. As Perl is not white space sensitive, I can do nested Ternary loops and still nicely comment it and space it out so that it doesn't appear cryptic.

Strawberry Perl Portable is another plus point. I can install all the modules I need, then just copy the folder onto a server and have my scripts using the perl executable from that folder. No need to touch the pre installed Perl on the Servers.

These points might seem trivial, but they do matter for me. I'm sure there are a lot of folks out there like me and that's the reason why Perl will have a future for sure as folks like myself need it.


In reply to Re: The future of Perl? by pritesh
in thread The future of Perl? by BrowserUk

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-03-29 14:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found