in reply to Please explain: print <<"END_USAGE";

Because it's a here-doc which has nothing to do with Getopt::Long specifically. Search for "<<EOF" in perlop in the section on quote-like operators, but basically it means create a string from everything following this line up to the next line beginning with the terminator string given after the "<<".

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: Please explain: print <<"END_USAGE";

Replies are listed 'Best First'.
Re^2: Please explain: print <<"END_USAGE";
by richz (Beadle) on Feb 15, 2008 at 18:17 UTC
    Thanks, it was hard finding help searching for print <<, but now I know where to look!
      Cause it has nothing to do with print.
      my ($var1, $var2) = (<<'EOI', <<'EOI'); ... EOI ... EOI