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

Re^2: error message in the end of the array looping?

by polettix (Vicar)
on May 30, 2006 at 10:42 UTC ( [id://552452]=note: print w/replies, xml ) Need Help??


in reply to Re: error message in the end of the array looping?
in thread error message in the end of the array looping?

This surely popped somewhere else here in PM (I kinda remember something), but I did a supersearch for $/ without finding anything applicable. Why:
print 'We have a match.', $/
instead of
print "We have a match.\n"
(apart from TIMTOWTDI)? Pointers welcome!

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.

Replies are listed 'Best First'.
Re^3: error message in the end of the array looping?
by Zaxo (Archbishop) on May 30, 2006 at 10:51 UTC

    Force of habit, mainly. I usually prefer giving print a list to concatenating strings and variables first. The habit just carries over to control characters like this, too.

    I used to believe that $/ had some advantage over "\n" in platform independence, but I'm over that now.

    After Compline,
    Zaxo

Log In?
Username:
Password:

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

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

    No recent polls found