Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Newbie programming questions

by zakzebrowski (Curate)
on Mar 01, 2005 at 17:48 UTC ( #435542=note: print w/replies, xml ) Need Help??


in reply to Newbie programming questions

It sounds like the questions you are asking are homework questions... but looking at your previous posts, it's looks like you're interested in building / extending windows applications. Perhaps, rather than focusing on the windows platform (which can be confusing) consider using a different operating system all together...
PS. Consider changing the subject of your post next time to something like windows programming...


----
Zak - the office

Replies are listed 'Best First'.
Re^2: Newbie programming questions
by halley (Prior) on Mar 01, 2005 at 19:33 UTC
    Consider changing the subject of your post next time to something like windows programming...

    ObJoke: But maybe he WANTS to program newbies. ;)

    --
    [ e d @ h a l l e y . c c ]

Re^2: Newbie programming questions
by BUU (Prior) on Mar 02, 2005 at 02:07 UTC
    consider using a different operating system all together...
    Becausing linux is *so* simple and easy to use. Really. I swear.

      No, linux is not simple and easy.

      It's just that, when you have a question, there usually is a straightforward (albeit not always easy) way to find the answer.

      Most (all) configuration is in plain text files, for example. Each with a slightly different syntax, but most of the time readable (sendmail.cf notwithstanding).

      Most programs come with documentation and source code, which is not always easy to read, but at least it's possible.

      Windows systems have this maddening tendency to try to protect the user from himself... I prefer a good length of rope, even if it means I will, sooner or later, hang myself.

      -- 
              dakkar - Mobilis in mobile
      

      PS: written in Firefox on a Macintosh ;-)

      Most of my code is tested...

      Perl is strongly typed, it just has very few types (Dan)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://435542]
help
Chatterbox?
[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.
[shmem]: so in the second example grep returns all true elements of the list passed
[Lady_Aleena]: Okay, so grep BLOCK is not like map BLOCK where something might need to be returned at the end.
[tobyink]: grep { $_ =~ /.*$in.*/; } @my_modules should work just fine. The problem is that you were adding on ;$_ at the end of the block. Why were you doing that?
[Lady_Aleena]: tobyink, I was thinking map.
[tobyink]: Something does need to be returned at the end not $_ though. You need to return (something that will be evaluated as) a boolean.
[Lady_Aleena]: Here is a longish map I did in the same script. my @my_modules = map { my $file = $_; $file =~ s/$module_director y(.+)\.pm/$1/; $file =~ s/\//::/g; $file; } @files;
[Lady_Aleena]: I spent half an hour trying to figure out why map was rewriting @files.

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