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

Re: At my main job I mostly occupy my...

by been42 (Curate)
on Aug 16, 2004 at 13:17 UTC ( #383288=note: print w/replies, xml ) Need Help??


in reply to At my main job I mostly occupy my...

I have a window, but it's like an arrow slit so I only get sun for about 15 minutes a day. Also, I only have an office because layoffs freed up the space, so I really hope my vote doesn't have to change from "Office with a window" to "I'd like a job" before the poll changes.
  • Comment on Re: At my main job I mostly occupy my...

Replies are listed 'Best First'.
Re^2: At my main job I mostly occupy my...
by csuhockey3 (Curate) on Aug 16, 2004 at 14:44 UTC
    My office window has a nice view of the air conditioning unit -- oh, and a couple weeds that they can't quite reach to cut down.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://383288]
help
Chatterbox?
[Lady_Aleena]: Why does grep(/.*$in.*/, @my_modules) work but grep { $_ =~ /.*$in.*/; $_ } @my_modules not work? What did I do wrong in the second?
[tobyink]: Why are you returning $_ n your grep block? You should return a boolean.
[tobyink]: *in your grep block
[tobyink]: You can use grep { $_ =~ /.*$in.*/; } @my_modules but why not stick to grep(/.*$in.*/, @my_modules)? (The latter is faster.)
[shmem]: Lady_Aleena, in the first example grep evaluates the result from grep and if true, returns $_. In the second, it always returns $_
[shmem]: ..the result from the pattern match
[Lady_Aleena]: tobyink, I did after I failed to get the BLOCK to work. I can't seem to get my brain around grep BLOCK, though I'm okay with grep EXPR.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-05-27 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?