Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Secret Perl Operators: the boolean list squash operator, x!!

by blazar (Canon)
on Jul 17, 2008 at 22:32 UTC ( #698464=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @part = (
        'http://example.net/app',
    ...
    );
    
    my $uri = join '/', @part;
    
  2. or download this
    my @part = map defined $_->[-1] ? $_->[0] : (), 
      ['http://example.net/app' => 1],
      ['admin' => $is_admin_link],
      [$subsite], [$mode => 1], [$id], [$submode];
    
  3. or download this
    my @part = map +(ref) ? (defined $_->[-1] ? $_->[0] : ()) : $_, 
      'http://example.net/app',
      ['admin' => $is_admin_link],
      [$subsite], $mode, [$id], [$submode];
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-09-21 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls