Subject: | POD docs at the top of perl source break Syntax parsing. |
I have found that if there is any POD documentation at the top of a
script to be debugged then all subsequent code is rendered in dark blue
without syntax coloring.
If the POD is at the end of the script, after the code then this problem
is not an issue.
Other than this bug, I realy like this module, especialy the continously
updated window of active code. Keep up the good work Ovid!
Subject: | hello.pl |
#!/usr/bin/perl
# Setup Pragmas.
use strict;
use warnings;
use diagnostics;
# Import common libaries.
use Getopt::Long;
use Pod::Usage;
sub main ()
{
my $raw_opts;
$raw_opts->{'help'} = sub{ pod2usage(-verbose=>0) };
# Use the store in hash form op GetOptions, with references to exceptions setup above.
GetOptions( $raw_opts, 'help|h','man') or pod2usage(-verbose=>0, -message => "incorect options");
# If we get this far the user did not pass in -help
# Emit the greeting.
print "Hello World\n";
}
exit main();
=pod
=head1 NAME
hello.pl - Hello World
=head1 SYNOPSIS
hello.pl [-h]
Simple hello world program. Takes no arguments.
=cut