Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: 2*pi*$r -- constant function without prototype

by BrowserUk (Patriarch)
on May 01, 2008 at 13:53 UTC ( #683930=note: print w/replies, xml ) Need Help??


in reply to Re^3: 2*pi*$r -- constant function without prototype
in thread 2*pi*$r -- constant function without prototype

As long as your going to use ${} to interpolate vars into strings, which is generally a good idea. Then you can use constants in a similar way with a single extra '\' character:

use constant NL => "\012";; print "fred${\NL}bill${\NL}";; fred bill

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^5: 2*pi*$r -- constant function without prototype
by parv (Vicar) on May 01, 2008 at 22:57 UTC
    (: Reminds me of creating alias (in a bourne-like shell) to refer to the real command, not another alias (alias ls="\ls -F" ; alias ll="\ls -la").

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-12-06 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?