Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by blazar (Canon)
on Jul 17, 2008 at 22:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://698464]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found