Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to avoid the duplication in a string

by ww (Archbishop)
on Oct 22, 2008 at 12:07 UTC ( [id://718715]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    =head - Per OP
    ...
        }
    }
    
  2. or download this
    ww@GIG:~/pl_test$ perl -c 718695.pl
    718695.pl syntax OK
    ...
    $found is: b
    $found is: c
    $found is: d
    
  3. or download this
    ww@GIG:~/pl_test$ perl  718695.pl
        $found is: a
        $found is: b
        $found is: c
        $found is: a  # dup
        $found is: d
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found