perl::critic::policy::valuesandexpressions::prohibitspecialliter(3pm) [debian man page]
Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecUsPerl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator(3pm)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.14.2Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator(3pm)
Check Out this Related Man Page
Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptUsertContributed Perl Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes(3pm)NAME
Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes - Write "q{}" instead of "''".
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Don't use quotes for an empty string or any string that is pure whitespace. Instead, use "q{}" to improve legibility. Better still,
created named values like this. Use the "x" operator to repeat characters.
$message = ''; #not ok
$message = ""; #not ok
$message = " "; #not ok
$message = q{}; #better
$message = q{ } #better
$EMPTY = q{};
$message = $EMPTY; #best
$SPACE = q{ };
$message = $SPACE x 5; #best
CONFIGURATION
This Policy is not configurable except for the standard options.
SEE ALSO
Perl::Critic::Policy::ValuesAndExpressions::ProhibitNoisyStrings
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.14.22012-06-07Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes(3pm)
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)
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)
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)
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)