Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Advocacy > Re: Perl as a s...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 72 of 91
Post > Topic >>

Re: Perl as a second language

by mx@[EMAIL PROTECTED] (Bruce Alderson) Oct 3, 2007 at 10:11 AM

--------------090906030501080904080601
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


> So I would really like to hear what does a Java/C*/etc..programmer with
several
> years of experience need to do to improve his working conditions that he
would
> be better off doing with Perl after just 1 day of training...
>
>
>   
Hi,

I've been developing systems stuff in C/C++ and web/GUI stuff (in every 
other common language) since the mid 80s.  I've only used Perl as a 
primary language on a few projects, which were mostly ancillary GUIs, 
re****ts, or re****t readers to larger projects.  But I do use Perl in 
nearly every project for a wide variety of systems tasks.  It's a 
powerful shell language on Unix, Linux, Windows (w/Cygwin or 
ActiveState), and Mac, so it has fit nearly any requirement for 
****tability that I've encountered, and the language is well suited for 
shell and textual tasks. 

Some of the things I've used Perl for:

1. Protocol test drivers (serial/TCP/UDP).  Perl's rich network 
libraries (and Linux's /dev-like systems) make it simple to write 
protocol drivers for testing device drivers.  Example:

    text file -> perl test script -> tcp/ip -> actual C driver

2.  Unit/system test tools.  Perl handles shell stuff well, and is a 
quick language to put together robust data-driven unit and system 
testing tools.  Combine the XS helper libraries (like the inline C 
module) and your own shared libraries, and you have a really simple way 
of testing code in an automated way.

3. Code generation.  Perl has libraries for parsing nearly any format 
(and with regex builtins, adding your own is trivial), so I tend to use 
little languages to generate C/C++ (or other) code.  For example, a 
current C++ project has a fairly large SQL schema, which we define in 
plain SQL.  Our simple Perl tools convert that SQL to C++ code and 
constants, text templates, and even Php code.

4. Special CGI bridges.  While I don't use Perl for much of my web work, 
I do find it the perfect tool for API CGIs.  One example is a crash 
re****ting CGI we have, which is fed crash re****ts from C/C++ code, and 
proxies the re****t to Bugzilla, email, and an internal CRM system.  It's 
also a good language for automating CGI testing, and for the 
implementation of SOAP web APIs.

5. Text and data analysis helper tools.  On several projects I've used 
Perl as a data transformation/filtering tool, to do performance 
analysis, and capacity analysis. 

Hope this helps,

--
http://warpedvisions.org


--------------090906030501080904080601
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote
 cite="mid:d8a74af10710030747p18011a8cteeac9d8a47f907ae@[EMAIL PROTECTED]
"
 type="cite">
  <pre wrap="">So I would really like to hear what does a
Java/C*/etc..programmer with several
years of experience need to do to improve his working conditions that he
would
be better off doing with Perl after just 1 day of training...


  </pre>
</blockquote>
Hi,<br>
<br>
I've been developing systems stuff in C/C++ and web/GUI stuff (in every
other common language) since the mid 80s.&nbsp; I've only used Perl as a
primary language on a few projects, which were mostly ancillary GUIs,
re****ts, or re****t readers to larger projects.&nbsp; But I do use Perl in
nearly every project for a wide variety of systems tasks.&nbsp; It's a
powerful shell language on Unix, Linux, Windows (w/Cygwin or
ActiveState), and Mac, so it has fit nearly any requirement for
****tability that I've encountered, and the language is well suited for
shell and textual tasks.&nbsp; <br>
<br>
Some of the things I've used Perl for:<br>
<br>
1. Protocol test drivers (serial/TCP/UDP).&nbsp; Perl's rich network
libraries (and Linux's /dev-like systems) make it simple to write
protocol drivers for testing device drivers.&nbsp; Example:<br>
<blockquote>text file -&gt; perl test script -&gt; tcp/ip -&gt; actual
C driver<br>
</blockquote>
2.&nbsp; Unit/system test tools.&nbsp; Perl handles shell stuff well, and
is a
quick language to put together robust data-driven unit and system
testing tools.&nbsp; Combine the XS helper libraries (like the inline C
module) and your own shared libraries, and you have a really simple way
of testing code in an automated way.<br>
<br>
3. Code generation.&nbsp; Perl has libraries for parsing nearly any format
(and with regex builtins, adding your own is trivial), so I tend to use
little languages to generate C/C++ (or other) code.&nbsp; For example, a
current C++ project has a fairly large SQL schema, which we define in
plain SQL.&nbsp; Our simple Perl tools convert that SQL to C++ code and
constants, text templates, and even Php code.<br>
<br>
4. Special CGI bridges.&nbsp; While I don't use Perl for much of my web
work, I do find it the perfect tool for API CGIs.&nbsp; One example is a
crash re****ting CGI we have, which is fed crash re****ts from C/C++
code, and proxies the re****t to Bugzilla, email, and an internal CRM
system.&nbsp; It's also a good language for automating CGI testing, and
for
the implementation of SOAP web APIs.<br>
<br>
5. Text and data analysis helper tools.&nbsp; On several projects I've
used
Perl as a data transformation/filtering tool, to do performance
analysis, and capacity analysis.&nbsp; <br>
<br>
Hope this helps,<br>
<br>
--<br>
<a class="moz-txt-link-freetext"
href="http://warpedvisions.org">http://warpedvisions.org</a><br>
<br>
</body>
</html>

--------------090906030501080904080601--
 




 3 Posts in Topic:
Perl as a second language
szabgab@[EMAIL PROTECTED]  2007-10-03 16:47:27 
Re: Perl as a second language
mx@[EMAIL PROTECTED] (Br  2007-10-03 10:11:10 
RE: Perl as a second language
Wayne.A.Haufler@[EMAIL PR  2007-10-03 14:17:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:59:27 CDT 2008.