Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: u+ fails to force scalar context to empty list assignment: +( () = ... )

by LanX (Saint)
on Mar 11, 2019 at 22:52 UTC ( [id://1231135]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use warnings;
    ...
    #  BUT
    
    LIST { 0+(ctxt) };            # forcing scalar context
    
  2. or download this
    SCALAR:    is scalar
    SCALAR:    is scalar
    ...
    VOID:    is void
    VOID:    is void
    LIST:    is scalar
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-18 03:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found