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


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to