Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Secret Perl Operators: the boolean list squash operator, x!! (grep disqualified?)

by tye (Sage)
on Aug 02, 2006 at 16:21 UTC ( #565257=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $name = join '-', @prefix, ( defined $path and length $path ) ? ( s
    +plit /:/, $path ) : (), $suffix;
    
  2. or download this
    ( LIST ) x!! COND
    ( grep COND, LIST )
    COND ? ( LIST ) : ()
    
  3. or download this
    my $name = join '-',
        @prefix,
        ( grep { defined $path and length $path } split /:/, $path ),
        $suffix;
    
  4. or download this
        ( split /:/, $path || '' ),
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://565257]
help
Chatterbox?
[Corion]: Yeah, but calling some random cloud service is not really implementing that stuff yourself :) Also, I don't like to litter the world with my personal data, or random bits of recorded audio... Ideally, my computations never leave my network :)
[Veltro]: ok, but nm. I meant the solution as a whole actually. Not sincerely the apps that use it
[marto]: and not long ago it wasn't feasible for anyone really to create a finger print of all known music to compare samples against...
[marto]: if you're living in the cloud, you're going to get rained on :P
[Veltro]: feasible in the sense of 'making money'?
[marto]: if your app just calls a remote or third party service to do the task, you app does not 'do the task', it's just a messenger

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2018-05-24 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?