Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^7: Use of "my" after Perl v5.14

by Anonymous Monk
on Sep 21, 2012 at 00:19 UTC ( #994794=note: print w/ replies, xml ) Need Help??


in reply to Re^6: Use of "my" after Perl v5.14
in thread Use of "my" after Perl v5.14

I can't understand what can be the problem with the code..

see chomp , not exactly easy to see at a glance what the return value is , you'll have to read that prose or employ tricks :)

$ perldoc -f chomp |ack return -A1 $INPUT_RECORD_SEPARATOR in the "English" module). It retur +ns the total number of characters removed from all its arguments. + It's -- number of characters removed is returned.


Comment on Re^7: Use of "my" after Perl v5.14
Download Code
Replies are listed 'Best First'.
Re^8: Use of "my" after Perl v5.14
by Rohit Jain (Sexton) on Sep 21, 2012 at 00:28 UTC
    Thanks :)

    Got it worked now.. Have to move chomp() outside that method call.. And then pass the modified numList as a Parameter..

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2015-07-30 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls