Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: subroutine help

by NetWallah (Abbot)
on Nov 29, 2012 at 06:53 UTC ( #1006173=note: print w/replies, xml ) Need Help??


in reply to subroutine help

Your code does not compile, and your problem description is wrong.

Your problems have to do with converting between the returned array, and the scalar $weight you assign it to.

Please search this site for responses to Your and your collegues VERY SIMILAR questions over the last few days, and avoid duplicate questions.

             "By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest."           -Confucius

Replies are listed 'Best First'.
Re^2: subroutine help
by space_monk (Chaplain) on Nov 29, 2012 at 07:22 UTC
    One wonders if the whole college is signed up to PerlMonks :-)
    A Monk aims to give answers to those who have none, and to learn from those who know more.
Re^2: subroutine help
by perlguru22 (Acolyte) on Nov 29, 2012 at 08:11 UTC
    Sorry I will make sure to look next time

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006173]
help
Chatterbox?
[Discipulus]: choroba if let your company to hire Tanktalus and marioroy ... what a big fishing!
[Discipulus]: i choice prague!!
[choroba]: 1200 years is enough :-)
[marioroy]: Lady_Aleena my $ans = qx! find . -name "*.pl" -exec ls -l {} \\; !;
[Tanktalus]: My basic problem right now is that if I were willing to move, I could be back in Toronto with a pay raise. We have a number of reasons for not wanting to do that.
[marioroy]: I had to backslash the backslash inside qx.
[Tanktalus]: marioroy++ # nice catch
[Lady_Aleena]: marioroy, that makes kinda makes sense.
[Discipulus]: yes i can survive also in younger town.. but when i passed i saw many strange letters..
[Lady_Aleena]: marioroy, sorry, I am not making sense right now.

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-04-23 20:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.