PERL Tutorial Example: how to putting quote in perl code

PERL Tutorial Example: how to putting quote in perl code

create a file named "perl-tutorial-example-quote-in-print.pl" then copy and paste the below code:

print "\n\n";

print "Don\'t break quoing rules while coding in PERL.\n\n";

print "This is the way - how quote works in PERL.";

print "\n\n";

PERL Example Base Tutorial: how to putting quote in perl code

Now run the program (perl-tutorial-example-quote-in-print.pl) from command prompt and get the desired result as follows:
Be careful while putting quote in PERL code.

PERL Tutorial Example: how to putting quote in perl code - output in the windows command prompt

The result in the windows command prompt

No comments:

Post a Comment

leave your comments here..