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

Re: brian's Guide to Solving Any Perl Problem

by water (Deacon)
on Jul 20, 2004 at 22:48 UTC ( [id://376146]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 06, 2006 at 19: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.