Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Some Basic Help.

by nemesdani (Friar)
on Sep 24, 2012 at 07:57 UTC ( #995307=note: print w/ replies, xml ) Need Help??


in reply to Some Basic Help.

$1 is the first bracketed match in a regular expression, you don't want that.

Why didn't you write simply my $predict = $_?

Another suggestion: use the 3 argument form of open.

if ($train = $predict) is also wrong: You have to use == when checking.


I'm too lazy to be proud of being impatient.


Comment on Re: Some Basic Help.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-09-18 23:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (126 votes), past polls