Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Re: Head to numb to see it.....

by Albannach (Monsignor)
on Mar 08, 2001 at 22:49 UTC ( [id://63059]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Head to numb to see it.....
in thread Head to numb to see it.....

My first reaction was also that the space is wrong, but then tye corrected me in the CB so I did a bit of experimenting and found surprising (to me) results. Guess what this snippet will do:
print $foo; print $foo ++; print $foo, $foo ++;

--
I'd like to be able to assign to an luser

Replies are listed 'Best First'.
(tye)Re: Head to numb to see it.....
by tye (Sage) on Mar 08, 2001 at 23:18 UTC

    The second line is one of the strange cases with whitespace. This is due to the "indirect object" syntax where the first argument can be missing the separating comma to indicate that it is a file handle (in the case of print). Like I said, there are some interesting exceptions but for most things spacing doesn't matter.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2024-04-26 08:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found