Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: What's like $+ but not gives the ordinal?

by Abigail (Deacon)
on Jun 28, 2001 at 02:29 UTC ( [id://92099]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: What's like $+ but not gives the ordinal?
in thread What's like $+ but not gives the ordinal?

That's not very Perlish. I agree it can save some accidents, but really, on subtraction? And why just use scalar on one of the operands of -, and not the other? Wouldn't
scalar ($sub [scalar (scalar (@-) - scalar (2))]) -> ()
be more "always use scalar rather than implying it" then just using it once? Or do you perhaps mean you only use it sometimes?

-- Abigail

Replies are listed 'Best First'.
Re: Re: What's like $+ but not gives the ordinal?
by chipmunk (Parson) on Jun 28, 2001 at 06:29 UTC
    Presumably, John meant that he always uses scalar on arrays (when they're in scalar context, of course). This implicit meaning in John's sentence is much like the implicit scalar on arrays in scalar context; if John had been explicit, you would not have been confused. ;)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-19 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found