I don't want to begin to understand why you're doing this, but if you
make a.pl read:
#!/usr/bin/perl
$test = 'World!';
require 'b.def';
print $abacus;

it should work.  If you mean for b.def to define some standard
functionality, try defining subs in it instead.

-David


On Tue, 9 Nov 2004 17:48:36 -0200, Jair V. B. Junior <[EMAIL PROTECTED]> wrote:
> Hi all, here comes a little confusing question :-)
> 
> a.pl:
> #!/usr/bin/perl
> 
> require 'b.def';
> $test = 'World!';
> print $abacus;
> 
> b.def:
> $abacus = "Hello $test";
> 
> When I run it:
> $ perl a.pl
> Hello
> 
> Why is this going wrong?
> 
> Thanks!
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
>

-- 
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