Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: Sometimes it's in Void Context

by Aristotle (Chancellor)
on Jun 01, 2002 at 18:29 UTC ( [id://170932]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Sometimes it's in Void Context
in thread Sometimes it's in Void Context

You misunderstood the question, just like dws did. I didn't get it until just a few moments ago either. Ovid's question is not "why does this not work as initially expected", nor "why do I get this warning", it is "why do I get the warning sometimes".

In your example, if you change print scalar(4,5); to print scalar(0,1);, you will get no warnings. His question is why and when that happens.

As chromatic quotes the perl source, that's the case because the warning is kludged not to trigger for the two values 0 and 1.

____________
Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Sometimes it's in Void Context
by JayBonci (Curate) on Jun 01, 2002 at 19:03 UTC
    My goof. In my original writeup (before i edited it down a bit). I had mentioned the special case for 1 and 0. Now if only I had posted that.... Alas.

        --jb

Log In?
Username:
Password:

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

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

    No recent polls found