Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by radiantmatrix (Parson)
on Aug 02, 2006 at 14:01 UTC ( #565228=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $uri;
    foreach ( 
    ...
    ) {
       $uri.="$_/" if ( defined $_ && length($_) ) #omit undef and empties
    }
    
  2. or download this
    my @part = ( 
       'http://example.net/app', 
    ...
    foreach (@parts) { 
       $uri.="$_/" if ( defined $_ && length($_) ) #omit undef and empties
    } 
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2014-09-17 22:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (100 votes), past polls