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

Re^4: foreach loops

by lyklev (Pilgrim)
on Oct 08, 2006 at 12:28 UTC ( #576986=note: print w/replies, xml ) Need Help??

in reply to Re^3: foreach loops
in thread foreach loops

They are not operators but variables. The $, is the string that gets printed between fields automatically, nothing by default. The $\ is what gets printed after allf fields, again nothing by default. If you set it to "\n", every print command will print a newline.

All these nice variables can be found in the perlvar documentation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576986]
[marto]: fortunately my bad jokes and puns don't fall into those categories :P
[Corion]: :-D
Corion discovers a new shiny toy to try out over the (longish) weekend. Since I've done some more with websockets, maybe I'll try writing a webserver that implements hot-reloading of HTML(+CSS, +Javascript) in the browser. Edit the local file and ...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-04-26 10:41 GMT
Find Nodes?
    Voting Booth?