Category Archives: Perl

What can you do with languages as perl and java 2?

Question by Yann: What can you do with languages as perl and java 2?
I’ve got books about programming but I havent really read any yet.
Ive got a books about : Perl, java 2, c, c++, asm, html and xhtml. I wanna be a programmer. How can each one of these languages help me? What can u do with each one of them?

Best answer:

Answer by zgraf
Perl = a scripting language.
Java = A general programming language.
C = Older programming language, rarely used any more.
C++ = newer than C, but kind of on the way out. C# is more fashionable these days.
ASM = assembly language. Only useful for small programming tasks where speed is critical.
HTML = a language for writing web pages.
XHTML = like HTML but more sophisticated.

If you want to write real world programs, from the languages you mention, I might suggest you start with either Java or C++. And expect a big learning curve for any language you start working with.
You will need to spend a lot of time and effort and write a lot of programs before you can get any good. No offense intended — that’s just the way it is. Good luck!

Give your answer to this question below!

Beginning Perl

Beginning Perl

This is a book for those of us who believed that we didn’t need to learn Perl, and now we know it is more ubiquitous than ever. Perl is extremely flexible and powerful, and it isn’t afraid of Web 2.0 or the cloud. Originally touted as the duct tape of the Internet, Perl has since evolved into a multipurpose, multiplatform language present absolutely everywhere: heavy-duty web applications, the cloud, systems administration, natural language processing, and financial engineering. Beginning Perl, Third Edition provides valuable insight into Perl’s role regarding all of these tasks and more.

Commencing with a comprehensive overview of language basics, you’ll learn all about important concepts such as Perl’s data types and control flow constructs. This material sets the stage for a discussion of more complex topics, such as writing custom functions, using regular expressions, and file input and output. Next, the book moves on to the advanced topics of object-oriented programming, modules, web programming, and database administration with Perl’s powerful database interface module, DBI. The examples and code provided offer you all of the information you need to start writing your own powerful scripts to solve the problems listed above, and many more.

Whether you are a complete novice or an experienced programmer, Beginning Perl, Third Edition offers an ideal guide to learning Perl.

What you’ll learn

  • How to use the power of Perl
  • How to handle Perl data structures
  • How to build database applications regardless of the underlying database
  • How to parse complex data
  • How to write industrial-strength object-oriented Perl
  • How to start web programming in Perl

Who this book is for

This book is for programmers of all shades and persuasions who thought they could do without Perl. Think again.

Table of Contents

  1. First Steps in Perl
  2. Scalars
  3. Control Flow Constructs
  4. Lists and Arrays
  5. Hashes
  6. Subroutines/Functions
  7. Regular Expressions
  8. Files and Data
  9. String Processing
  10. Interfacing to the Operating System
  11. References
  12. Modules
  13. Object-Oriented Perl
  14. Introduction to CGI
  15. Perl and DBI

List Price: $ 39.99

Price: {price-updating}

Perl Mongers

Perl Mongers

Image by Theory
The Vancouver Perl Mongers were kind enough to organize a little get-together for my visit. It was hosted by Gossamer Threads, who also provided the beer and a delicious barbecue. Thanks!

Sams Teach Yourself Perl in 21 Days (2nd Edition)

Sams Teach Yourself Perl in 21 Days (2nd Edition)

Sams Teach Yourself Perl in 21 Days covers the basics of Perl in the first few chapters, and then moves on to practical issues of Perl and in-depth discussions of more advanced topics. Later chapters also delve into software engineering topics, with discussions of modular code and object-oriented programming. CGI is covered in one chapter, but it is not the focus on the book. The book relies heavily on longer working examples and code, as opposed to small snippets and code fragments, and each chapter includes two to three smaller complete examples and one major one that illustrates most of the concepts for that chapter and builds on the chapters before it. Written by Laura Lemay, this is her third major book after Sams Teach Yourself Web Publishing with HTML in 21 Days and Sams Teach Yourself Java in 21 Days.

List Price: $ 49.99

Price: {price-updating}
Software For WebMasters.

Would you consider the Perl programming language worth learning?

Question by TestTubeBaby: Would you consider the Perl programming language worth learning?
I am very intrigued by Perl, and have been studying it. Though it was once the most popular programming language used on web sites, it is no longer used very much at all. It is, however, still used for some network programming. I am not sure if I can apply this skill in the workplace. Any thoughts on Perl?

Best answer:

Answer by R.F.
Perl isn’t as popular as it used to be, but it’s still being used.
If you like Perl, then continue learning it.

But I’d suggest learning more than just Perl. In any IT job, the more you know, the better, and no programmer lists only one programming language on their resume.

If you’re in interested in web site development, then you have to learn PHP. It’s the most popular language right now. Javascript and Ajax are also important. You’ll also need HTML and CSS, but they aren’t programming languages, but they are easy to learn. It would also be very good to learn some content management systems like Drupal or Joomla.

If you’re more interested in web application development, then you should study more robust programming languages like Java or C#. There are a lot of other frameworks, like JSP that build the front end of web pages.

In other words, don’t stop with Perl. The more you learn, the easier it will be to pick up other languages.

Give your answer to this question below!

Perl Hackathon

Perl Hackathon

Image by Maddingue
Jonathan Worthington montre la liste des projets Perl qui ont bénéficié du hackathon qui a lieu mi-novembre à Chicago, USA.

Ebook Look de Lifestyle Conseil

Ebook Look de Lifestyle Conseil
Plus de 100 pages de réflexions pratiques et de conseils illustrés pour bâtir son propre style. Écrit par un coach en relooking professionnel, l’Ebook Look est le guide de référence sur l’art de l’habillement au masculin.
Ebook Look de Lifestyle Conseil

Mastering Algorithms with Perl

Mastering Algorithms with Perl

Many programmers would love to use Perl for projects that involve heavy lifting, but miss the many traditional algorithms that textbooks teach for other languages. Computer scientists have identified many techniques that a wide range of programs need, such as:

  • Fuzzy pattern matching for text (identify misspellings!)
  • Finding correlations in data
  • Game-playing algorithms
  • Predicting phenomena such as Web traffic
  • Polynomial and spline fitting

Using algorithms explained in this book, you too can carry out traditional programming tasks in a high-powered, efficient, easy-to-maintain manner with Perl.

This book assumes a basic understanding of Perl syntax and functions, but not necessarily any background in computer science. The authors explain in a readable fashion the reasons for using various classic programming techniques, the kind of applications that use them, and — most important — how to code these algorithms in Perl.

If you are an amateur programmer, this book will fill you in on the essential algorithms you need to solve problems like an expert. If you have already learned algorithms in other languages, you will be surprised at how much different (and often easier) it is to implement them in Perl. And yes, the book even has the obligatory fractal display program.

There have been dozens of books on programming algorithms, some of them excellent, but never before has there been one that uses Perl.

The authors include the editor of The Perl Journal and master librarian of CPAN; all are contributors to CPAN and have archived much of the code in this book there.

“This book was so exciting I lost sleep reading it.” Tom Christiansen

Written for readers with at least some Perl programming experience, Mastering Algorithms in Perl delivers a solid library of algorithms written in Perl for business and mathematical computing. From data structures to cryptography and more advanced mathematical algorithms, this book provides a worthwhile guide to extending Perl’s coding capabilities.

The best thing about Mastering Algorithms in Perl is the scope at which it covers the universe of algorithms while refraining from getting bogged down in academic detail. Besides basic data structures–a lynchpin of books on algorithms–the authors provide dozens and dozens of algorithms for sorting, searching, and doing mathematical computations of all kinds. While they discuss “Big-O” notation and assume a general familiarity with math, they don’t overwhelm the reader. (You can even borrow the code without needing a math degree to understand it.) The focus is on efficient, reusable Perl subroutines written and compiled by three Perl experts.

Standout chapters include extending Perl’s already powerful string processing abilities, game programming, and cryptography. Generally, the authors achieve a good mix of more advanced (and less well-known) algorithms, along with the basics. Chances are you won’t need to use all the dozen or so sorting algorithms presented here, but the authors include them all, just in case. As a reference and tutorial, readers can pick and choose what they need for real-world Perl development.

There hasn’t been a book dedicated exclusively to Perl algorithms prior to the publication of this one. In all, Mastering Algorithms in Perl fills a useful niche by compiling a powerful library of Perl algorithms that will be useful for anyone who works with this programming language, whether in business or academic computing. –Richard Dragan

Topics covered: Perl data types, Big-O notation, data structures, queues, deques, linked lists, binary trees, sorting and searching algorithms, game and dynamic programming, sets and multisets, matrices and graphs, string matching and parsing, 2-D geometry, number systems, cryptography (including DES and RSA), probability, statistics, and numerical analysis.

List Price: $ 34.95

Price: {price-updating}

How to get local time using PERL while the server I am using is in a different time zone?

Question by Munir: How to get local time using PERL while the server I am using is in a different time zone?
For example, my local time is 9 am August 17th. But the server is in 9pm August 16th time zone. How do I write PERL code to get my local time?
Answer to Martin:
Sorry for lack of info. I am quite new to PERL.
The cgi I am using is stored in a server in USA. (I live in Japan). It uses the PERL engine from
/usr/bin/perl of the server in USA to run the cgi script. I used the following code to get time:
($ sec,$ min,$ hour,$ mday,$ mon,$ year,$ wday,$ yday,$ isdst) = localtime(time);

Obviously it is showing the server’s local time. But I need to modify the code to get Japan’s local time.
Please let me know if you need further information. Thank you.
To E.M.Bed
Thanks a lot for the detailed info. However, I have 2 problems.
1. How to pass the value created by javasript to the perl variable $ zone. PERL should execute before JS executes.
2. Getting the following error:
Can’t locate in @INC (@INC contains: /usr/lib/perl5/5.8.7/i386-freebsd /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i386-freebsd /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl .) at /test.cgi line 35.
BEGIN failed–compilation aborted at /test.cgi

Please help.

Best answer:

Answer by martinthurn
We need more info to answer your question. Is your program running on the server? Or on your local machine? Are you getting the date from the server? Or trying to send a date to the server? Basically, what does the server have to do with the local time in the first place?

Know better? Leave your own answer in the comments!

Powered by Yahoo! Answers