CARVIEW |
Top Contributors
-
86 Answers
-
57 Answers
-
26 Answers
-
20 Answers
-
19 Answers
Topics: perl
-
4VOTES0ALTERNATES
-
2VOTES0ALTERNATES
How to Multiply Matrices in Perl
By gnatIf you want to multiply a pair of two-dimensional arrays, use the PDL modules, available from CPAN. PDL is the Perl Data Language—modules that give fast access to compact matrix and mathematical fun...
20 October 2009 - 04:53 PM | 0 Comments
Tags:
-
2VOTES0ALTERNATES
How to Generate Random Numbers in Perl
By gnatIf you want to make random numbers in a given range, inclusive, such as when you randomly pick an array index, simulate rolling a die in a game of chance, or generate a random password, use Perl's...
20 October 2009 - 04:01 PM | 0 Comments
Tags:
-
3VOTES0ALTERNATES
-
4VOTES0ALTERNATES
How to Work with Roman Numerals in Perl
By gnatIf you want to convert between regular numbers and Roman numerals, use the Roman module from CPAN: use Roman; $roman = roman($arabic); # convert to roman numerals &#...
20 October 2009 - 03:30 PM | 0 Comments
Tags:
-
3VOTES0ALTERNATES
How to Properly Capitalize a Title or Headline in Perl
By gnatIf you have a string representing a headline, the title of book, or some other work that needs proper capitalization, use a variant of this tc( ) titlecasing function: INIT { our %nocap;...
20 October 2009 - 03:11 PM | 0 Comments
Tags:
-
1VOTES0ALTERNATES
-
1VOTES0ALTERNATES
-
1VOTES0ALTERNATES
How to Match IPv4 Addresses with Regular Expressions
By StevenLevithanIf you want to check whether a certain string represents a valid IPv4 address in 255.255.255.255 notation, try one of these examples from Regular Expressions Cookbook: Simple regex to check fo...
30 September 2009 - 01:11 PM | 0 Comments
Tags:
-
1VOTES0ALTERNATES
How to validate traditional date formats with regular expressions
By Jan GoyvaertsIf you want to validate dates in the traditional formats mm/dd/yy, mm/dd/yyyy, dd/mm/yy, and dd/mm/yyyy, using a simple regex that simply checks whether the input looks ...
18 September 2009 - 12:45 PM | 0 Comments
Tags:
![]() ©2009, O'Reilly Media, Inc. (707) 827-7000 / (800) 998-9938 All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. |
About O'Reilly Academic Solutions Authors Contacts Customer Service Jobs Newsletters O'Reilly Labs Press Room Privacy Policy RSS Feeds Terms of Service User Groups Writing for O'Reilly |
Content Archive Business Technology Computer Technology Microsoft Mobile Network Operating System Digital Photography Programming Software Web Web Design |
More O'Reilly Sites O'Reilly Radar Ignite Tools of Change for Publishing Digital Media Inside iPhone O'Reilly FYI makezine.com craftzine.com hackszine.com perl.com xml.com Partner Sites InsideRIA java.net O'Reilly Insights on Forbes.com |