Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Remove elements from an array

by dimar (Curate)
on Nov 23, 2004 at 18:01 UTC ( [id://409947]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    use strict;
    ...
    @aTemp = grep{$_ =~ /B.*?y/} @aTemp;
    print join',',@aTemp;
    
  2. or download this
    use strict;
    use warnings;
    my  @aTemp = qw(Fred Betty Barney Wilma);
    @aTemp = grep{$_ !~ /B.*?y/} @aTemp;
    print join',',@aTemp;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-24 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found