Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Of variable {mice} and its name {man}.

by vladb (Vicar)
on Jun 01, 2002 at 14:17 UTC ( [id://170911]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my (@a, @b);
    # .  .  .
    ...
    # .  .  .
    my @m = map { my $x = $_; grep { /^$x$/ } @b; } @a;
    print @m;
    
  2. or download this
    my (@registered_users, @personalized_users);
    # .  .  .
    ...
           my $registered_user = $_;
           grep { /^$registered_user$/ } @personalized_users;
    } @registered_users;
    
  3. or download this
    my @employees; # declare an array.
    my %records; # declare a hash variable.
    my $name; # declare a scalar
    
  4. or download this
    # reference to an array
    my @employees;
    ...
        #  .  .  . 
        }
    }
    
  5. or download this
    $"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+)
    +-.*)$/;
    $_=<a HREF="/index.pl?node=%22ps%20-e%20-o%20pid%20"> "," $2 </a>;`@$_
    +`?{print"+ $1"}:{print"- $1"}&&`rm $1`;
    print$\;}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://170911]
Approved by Zaxo
Front-paged by Aristotle
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found