http://www.perlmonks.org?node_id=1052885


in reply to random question

what's weird is if i don't force scalar context it returns 10

Replies are listed 'Best First'.
Re^2: random question
by CountZero (Bishop) on Sep 08, 2013 at 09:17 UTC
    What do you mean by "if i don't force scalar context"? You are not "forcing" scalar context anywhere in your script?

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics