On Fri, 2004-01-23 at 14:43, Randy W. Sims wrote:
On 1/23/2004 4:36 PM, Eric Walker wrote:
>
> when I tried to add a package to it, I did some test and its not reading
> the DATA anymore. Is there a certain order?
__DATA__ must be in package main;
#!perl
use strict;
use warnings;
while (<DATA>) {
print;
}
package Test;
sub a {}
1;
package main; # DATA must be in main
__DATA__
this
is my
data
section
worked like a charm thanks, now its working but correctly time to get my handy
dandy
print statement out...
Thanks..