You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jamal Uddin <ud...@chem.wisc.edu> on 2001/03/15 04:59:43 UTC
how to print $ sigh in the output
Hello,
I am writing a perl script which will produce some scripts or files containing "$" but I failed because "$" is used as an operator. Can any one please let me know how to define $ as a simple character. Supposed, I asked to print $PATH in my output. Thank you.
Jamal
uddin@chem.wisc.edu
Re: how to print $ sigh in the output
Posted by "Sean C. Brady" <se...@valueclick.com>.
' and \ are your friends....
print '$PATH' or
print "\$PATH"
The O'REILLY book 'Learning Perl' is a good one.... I would suggest
reading it...
~Sean
> Jamal Uddin wrote:
>
> Hello,
>
> I am writing a perl script which will produce some scripts or files
> containing "$" but I failed because "$" is used as an operator. Can
> any one please let me know how to define $ as a simple character.
> Supposed, I asked to print $PATH in my output. Thank you.
>
>
> Jamal
> uddin@chem.wisc.edu
>
>
>