Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: brian's Guide to Solving Any Perl Problem

by water (Deacon)
on Jul 21, 2004 at 02:48 UTC ( #376146=note: print w/ replies, xml ) Need Help??


in reply to brian's Guide to Solving Any Perl Problem

Excellent writeup.

Off topic, I have to comment on introductory regexp:

s/girlfriend/wife/
Boy, one can encapsulate a huge amount of life change in 18 chars of perl!

Also it is good you did't have to use the /g modifier there!


Comment on Re: brian's Guide to Solving Any Perl Problem
Select or Download Code
Replies are listed 'Best First'.
Re^2: brian's Guide to Solving Any Perl Problem
by tinita (Parson) on Nov 07, 2006 at 00:10 UTC
    that can be shortened:
    tr/glrind/wi/d;
    =)
      Could someone explain what exactly does it do?
      tr/glrind/wi/d
      Thanks.
        It replaces g with w and l with i, and deletes the characters rind. Therefore,
        girlfriend w--if--e--
        لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://376146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (17)
As of 2015-07-07 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls