Comparisons in Perl

Tutorials Shared by the Internet Community


  Top Tutorials     New Tutorials     Submit     Login     Register  

Comparisons in Perl

Learn how to use simple comparisons and regular expressions in Perl.
  • Total Hits: 22974

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating


  • Total Votes: 154 votes

  • Category: Perl & CGI/Getting Started

  • Submitted on: 2008-03-16 00:58:07

  • Submitted By: Devesh Khanna

  • Set as Favorite


This tutorial shows how to use simple comparisons and regular expressions in Perl. Almost everything we put in an ‘if’ expression is going to be comparing a variable with a value, or a variable with another variable. In Perl, we have to keep our numeric comparisons separate from our text comparisons.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 37.01%  57
 Two starsTwo star  Vote LeftVote MiddleVote Right 11.04%  17
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 12.34%  19
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.69%  18
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 27.92%  43

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.