Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: (ar0n) Re: Storing Info

by sickboy
on Jan 21, 2002 at 10:19 UTC ( #140324=note: print w/ replies, xml ) Need Help??


in reply to (ar0n) Re: Storing Info
in thread Storing Info

Hey tough guy let's see how u would grep :
1. The number of people with brown hair and firstnames starting with "j"?

Look at the problem, don't just throw out grep and map.
I'm sure i won't hear from you again, and thanks for the reputation points

Good luck with the job hunt.


Comment on Re: (ar0n) Re: Storing Info
(ar0n) Re (3): Storing Info
by ar0n (Priest) on Jan 21, 2002 at 10:27 UTC
    Hey tough guy let's see how u would grep : 1. The number of people with brown hair and firstnames starting with "j"?

    If there's one thing I'm not, it's tough. Girls have won arm-wrestling contests with me.

    Look at the problem, don't just throw out grep and map.
    I did. I know the solution, I am simply not giving it to you, as you seem to be unwilling to put any effort into finding the solution.
    I'm sure i won't hear from you again,

    You appear to be wrong.

    Good luck with the job hunt.

    Thank you.

    [ ar0n -- want job (boston) ]

      you have issues. You must be awful in real life
      Now just go away ar0n, unless you have an answer in code
      You don't...
        you have issues.

        You're right. I think it's called post-adolescent existentialist angst. On the other hand, so do you. You still don't have a solution :-)

        You must be awful in real life

        That is a correct assumption. I have also been labelled weird, by the way.

        Now just go away jona,

        You know, I think I will. There's about 4 inches of snow outside and not a snow man in sight. That's just wrong.

        ... unless you have an answer in code. You don't...

        sickboy: do not
        ar0n: do too
        sickboy: do not
        ar0n: do too
        sickboy: do not
        ...
        
        This can get repetitive :-)

        Good bye (Rest assured though, I'll be back later when Frosty is done).


        Update: The snow was too powdery. For best results, the snow needs to melt a bit before it can be molded properly. Hence, no snow man tonight. I shall try again tomorrow.


        [ ar0n -- want job (boston) ]

Re: Re: (ar0n) Re: Storing Info
by footpad (Monsignor) on Jan 21, 2002 at 10:32 UTC

    Um, ar0n's actually being nice. You should see him on a bad day.

    Normally, your post would have been considered, reaped, and forgotten with no replies to speak of.

    However, it's a weekend, so things are a little slow.

    In any event, this isn't a place where people solve your problems for you. It's a place where you show them what you've tried and they point out places where you might look for the next step.

    I can't speak for ar0n, but I'd probably start by going perldoc -f map and perldoc -f grep.

    That done, I might even try perldoc -q sort hash and see if there's anything in the Friendly Manual provided with the language. (There certainly seems to be one or two things that apply. Have you tried them?)

    Naturally, one can also try the same query on perldoc or (heck, why not live a little?) even here.

    IOW, the Monastery best helps those willing to first help themselves. *That's* why you're getting some insubstantial answers.

    For best results, take what you've been given so far, write some code, and then--if still stuck--post what you have and the specific problem you're working through. We'll help you through problems, but we won't do your [home]work for you.

    --f

      @routes=grep /$line/, @ {$rec->{'ADV'}};
      i want to grep the entire %friends. Every $rec
      For all people with brown hair and name starting with "j".
      Either answer or go away. You think I haven't looked around?
        Either answer or go away.

        Excuse me, but this guy went out of his way to give you a few pointers and you just insulted him. Any help is better than no help at all. Further, you probably haven't really looked at grep. If you had, the solution would quickly become obvious.

        Nobody here is going to hand you the code--you have to do it for yourself or you'll never learn. I will, however, hand you part of the code. @results=grep {SOMETHING} @friends{sort keys %friends};
        All you have to do is figure out what goes in place of the SOMETHING. It's not that difficult.

        =cut
        --Brent Dax
        There is no sig.

Re: Re: (ar0n) Re: Storing Info
by NodeReaper (Curate) on Jan 21, 2002 at 12:31 UTC

    Reason: (dws) personal attack -- delete

    For more information on this node visit: this

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2014-10-24 07:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls