develooper Front page | perl.perl5.porters | Postings from November 2003

Re: Cwd::cwd() bug??? on Cygwin

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
November 21, 2003 03:03
Subject:
Re: Cwd::cwd() bug??? on Cygwin
Message ID:
20031121110334.3098.7@llama.elixent.com
Randy W. Sims <RandyS@ThePierianSpring.org> writes:
>> 
>> sub cwd {
>>   require Cwd;
>>   Cwd::cwd;

If you made that 
     Cwd::cwd();

it would work. 

>> }
>> 
>> 1;
>> -----><8-----
>> 
>> -----><8-----
>> # test.pl
>> package MyModule;
>> use Module;
>> use base 'Module';
>> use Cwd;

If you moved that above the use Module line then when Module.pm 
was compiled it would know Cwd::cwd was a function.

>> 
>> package main;
>> MyModule->new;
>> -----><8-----
>> 


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About