• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

Print statement issue $$

My perl script:

   #!/usr/bin/perl                
   print "$$EnterTrueGuiMode$$\n";

Instead of printing:
   $$EnterTrueGuiMode$$

 it prints:
   4249
0
silentreproach
Asked:
silentreproach
1 Solution
 
Adam314Commented:
$$ is a special variable for perl, it is the PID of the process.

You could escape the $, or use single quotes:

print "\$\$EnterTrueGuiMode\$\$\n";
print '$$EnterTrueGuiMode$$'."\n";

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now