Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by radiantmatrix (Parson)
on Aug 02, 2006 at 14:01 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://565228]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found