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

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Turn the question back around and ask them the same thing.

And here are some advantages Perl has over ASP and Java (to throw at them while they're still trying to come up with some good reasons for their preferred languages):

  • Built-in text processing facilities - regexen, split, etc.
  • CPAN - there's probably a module on CPAN that will do what you need, and will do it a lot more reliably since most CPAN modules are subjected to more testing than a handrolled module.
  • Communities like PerlMonks
  • And most importantly, a saner syntax. For example, let's open a file in Perl and write to it:
    open my $fh, ">FILENAME" or die "Can't write FILENAME: $!"; print $fh "We are writing a line of text to a file.\nSecond line"; close $fh;
    In ASP:
    <% Dim objFSO, objTextStream, file file = Server.MapPath("samplefile.txt") Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set objTextStream = objFSO.OpenTextFile(file , 2, True) objTextStream.WriteLine "We are writing a line of text to our text fil +e" & VBCfLf & "This is our second line of text" & VBCrLf objTextStream.Close Set objTextStream = Nothing Set objFSO = Nothing %>
    Or Java:
    try { BufferedWriter out = new BufferedWriter(new FileWriter("outfil +ename")); out.write("We are writing a line of text to our text file\nThi +s is our second line of text"); out.close(); } catch (IOException e) { }
    I know which one I'd rather write. The Java example isn't as ludicrously verbose as the ASP sample, but I still find Perl's syntax much more straightforward.
  • Perl's interpreter is extremely fast. If you run Perl with mod_perl or ISAPI, you'll get excellent performance. I would suspect this is faster than ASP and strongly suspect that this is faster than Java, but I have no numbers to prove this.
Are you sure it was a book? Are you sure it wasn't.....nothing?

In reply to Re: Arguments needed for comparision between Perl, ASP and Java by batkins
in thread Arguments needed for comparision between Perl, ASP and Java by Gorby

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, 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, 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.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others romping around the Monastery: (7)
    As of 2021-01-18 12:00 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Notices?