Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Answer: More than one way to do it???

by chipmunk (Parson)
on Dec 07, 2000 at 01:28 UTC ( [id://45328]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl -w
    use diagnostics;
    
    $_ = 'foo';
    s/(.)/\1/;
    
  2. or download this
    \1 better written as $1 at tmp.pl line 5 (#1)
     
        (W) Outside of patterns, backreferences live on as variables.  The
    + use
    ...
        substitution, but stylistically it's better to use the variable fo
    +rm
        because other Perl programmers will expect it, and it works better
        if there are more than 9 backreferences.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found