in reply to Re^2: error returning hash value?
in thread error returning hash value?
Hi drlecb. There are a few ways to include sample files with your program on Perlmonks. To include it like you did and have the Perl program still be runnable you can add __DATA__ or __END__ after your Perl program and anything after it will be treated as data or comments. Another way is to start a new code section for your sample file with <c> ... </c> so that the monks can click download for the sample file.
Here is an example of using __DATA__
use warnings; use strict; while(<DATA>){ my $line = $_; print $line; } __DATA__ Line 1 Line 2 Line 3
|
|---|