Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

perl::critic::policy::valuesandexpressions::prohibitspecialliter(3) [centos man page]

Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecUserPerl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator(3)

NAME
Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator - Don't write " print <<'__END__' ". AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
Using one of Perl's special literals as a HEREDOC terminator could be confusing to tools that try to parse perl. print <<'__END__'; #not ok Hello world __END__ print <<'__END_OF_WORLD__'; #ok Goodbye world! __END_OF_WORLD__ The special literals that this policy prohibits are: __END__ __DATA__ __PACKAGE__ __FILE__ __LINE__ CONFIGURATION
This Policy is not configurable except for the standard options. SEE ALSO
Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator Perl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTerminator AUTHOR
Kyle Hasselbacher <kyle@cpan.org> COPYRIGHT
Copyright (c) 2009-2011 Kyle Hasselbacher. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. perl v5.16.3 Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator(3)

Check Out this Related Man Page

Perl::Critic::Policy::ValuesAndExpressions::RequireUpperUserHContrPerl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator(3)

NAME
Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator - Write " <<'THE_END'; " instead of " <<'theEnd'; ". AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
For legibility, HEREDOC terminators should be all UPPER CASE letters (and numbers), without any whitespace. Conway also recommends using a standard prefix like "END_" but this policy doesn't enforce that. print <<'the End'; #not ok Hello World the End print <<'THE_END'; #ok Hello World THE_END CONFIGURATION
This Policy is not configurable except for the standard options. SEE ALSO
Perl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTerminator AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com> COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license can be found in the LICENSE file included with this module. perl v5.16.3 Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator(3)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Little Prolem with Perl

look imagine that $i="hello+world+How+Are+you+Niggaz+Back+Da+Fu..+Up"; so how to convert all "+" characterns to spaces??? Thanx In Advance:) :) (4 Replies)
Discussion started by: Yaki
4 Replies

2. Shell Programming and Scripting

What are literals ?

Can someone explain what are literals , googled it got totally confused are these strings , numbers , boolean or a set of them (1 Reply)
Discussion started by: dinjo_jo
1 Replies

3. What is on Your Mind?

Surviving in the business world - which tools to know

Hello everyone, I have been in the corporate world for a couple of years now, and I have realized that most successful/semi-productive people are those that are a hybrid between technically proficient in Visualbasic/Access while at the same time in the corporate sphere, meaning Powerpoints and... (2 Replies)
Discussion started by: awayand
2 Replies

4. Shell Programming and Scripting

Unix Shell scripting, removing hex 0d 0a

hi, I have a file with data like this : 5963491,11926750,Policy Endorsement 1 Policy Endorsement 2 Policy Endorsement 3 Policy Endorsement 4 Policy Endorsement 5 Policy Endorsement 6 Policy Endorsement 7 5963492,11926751,Product.Quote... (10 Replies)
Discussion started by: mrsindhe87
10 Replies

5. Shell Programming and Scripting

Perl/Tk - user value

Hi, I am new to perl TK world. I am having doubt that for the below code. How to take the value of selected and text box value from out of the loop. #!/usr/bin/perl use strict; use Tk; use Tk::BrowseEntry; my $mw = MainWindow->new; # Mainwindow: sizex/y, positionx/y (1 Reply)
Discussion started by: vasanth.vadalur
1 Replies