aantonyselvam has asked for the wisdom of the Perl Monks concerning the following question:
How should I print the Global special constant Variable in the double quote. I should not use the temporary variable also to store
print "This is the package =>" . __PACKAGE__ . "<="; (or) $pack = __PACKAGE__; print "This is the package => $pack <=";
instead of the above statement I need to use the variable in print statement as follows.
print "This is the package => __PACKAGE__ <=";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Print the Global special constant Variable
by Anonyrnous Monk (Hermit) on Feb 09, 2011 at 12:56 UTC | |
Re: Print the Global special constant Variable
by AnomalousMonk (Archbishop) on Feb 09, 2011 at 19:29 UTC | |
Re: Print the Global special constant Variable
by vetrivel (Sexton) on Feb 09, 2011 at 15:46 UTC |