Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: Removing chars from a word from an array

by blazar (Canon)
on Jan 24, 2006 at 16:20 UTC ( #525226=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    my @list= qw(a b c a c);
    my $w="kandabbbc";
       @list = grep {!/\Q$a/} @list;
    print $w;
  2. or download this
    my %saw;
    for (@list) {
        next if $saw{$_}++;
        # ...
  3. or download this
    my @list= qw(a b c a c);
    my $re = join '|', @list;
  4. or download this
    my $re=join "", @list;

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2015-11-27 21:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (734 votes), past polls