Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 402621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:08:31+00:00 2026-05-12T17:08:31+00:00

I got involved in a new project where Perl is a must. I’m coming

  • 0

I got involved in a new project where Perl is a must. I’m coming from a good Ruby foundation and want a quick introduction or mapping between Perl and Ruby as I heard that Perl and Ruby are very close in syntax (know nothing about features).

  1. Do you have any recommendations for me?
  2. What great Perl book do you recommend as an extended reference?
  3. What is the commonly used version of Perl right now?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:08:31+00:00Added an answer on May 12, 2026 at 5:08 pm

    I second Nathan’s book recs, though I would also mention Beginning Perl. Two bonus features are (1) it’s available freely (and legally) online in its first edition (note: this site is timing out right now, and I’m unsure if that’s temporary or not) and (2) it covers about as much as Learning Perl and Intermediate Perl combined. A con is that it’s at times more elementary that you might want. (Learning Perl goes faster and assumes a bit more – which can be a good thing.)

    You might also check out this: To Ruby From Perl from Ruby’s website. Just think of it in reverse.

    In terms of versions, 5.10.1 is stable, but you will come across a range. Mostly you will find 5.8.x and up, I suspect. (Just as with Ruby 1.9.1 is stable but you will find plenty of places still using 1.8.6 or up.)

    Since I’m somewhat going in the opposite direction (I know Perl reasonably well, and I’m using Ruby more and more often), I can mention things that stick out to me:

    1. In Perl, you get automatic conversion between strings and numbers (and you don’t need to explicitly ask for a float result by using .to_f or making one item a float).
    2. Semicolons are not optional to end statements in Perl. Similarly parentheses are optional less often in Perl than they are in Ruby. (This gets complex quickly, but for example you must have parentheses for the test in a condition or a while block.)
    3. 0 (string, integer and float), undef and the empty string evaluate as false in boolean tests.
    4. There are no separate booleans true and false.
    5. You distinguish data types with sigils: $foo is a scalar; @foo is an array; %foo is a hash. (Arrays in particular will bug you: they aren’t instance variables.)
    6. You need to explicitly scope items in Perl, using the my keyword.
    7. Arrays in Perl are automatically flattened when combined. (This constantly bites me in Ruby.)
    8. Context, context, context. In Perl an enormous amount of what your code actually does depends on understanding what context you’re in. Here’s a link for a start, but it’s a big topic with a lot of nooks and crannies.

    (Note that I didn’t mention the 1000 pound gorilla in the room. OO is part of what Perl is and can do, but it’s not at the center of Perl, as it is in Ruby.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just recently got involved in a classic ASP.NET project which contains lots
I've got defective input coming in that looks like this... foo<p>bar</p> And I want
I'm working on a new project which involves jQuery Roundabout . I've got everything
I recently got involved in a Java project at work: we're using MyEclipse for
Got waist deep in a project that will involve presenting zoomable hi res catalog
Got a seg fault from my memcpy that gdb can't give me anything else
I've been working on a project where I have been using LinqToSQL that involved
Since my other bug got solved, I'm posting a new question for this bug.
I'm fairly new to web-centric design and programming. I've got a HTML + CSS
I'm new to Ruby on Rails but it seems it creates a new session

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.