Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: brian's Guide to Solving Any Perl Problem

by water (Deacon)
on Jul 21, 2004 at 02:48 UTC ( [id://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!

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://376146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2025-06-15 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.