This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Ok, this might in fact be a Cygwin problem. Cygwin & Cwd. The following produces the error "Usage: Cwd::cwd() at Module.pm line 6." under Cygwin
if(items != 0) Perl_croak(aTHX_ "Usage: Cwd::cwd()");
-----><8----- # Module.pm package Module;
sub new { my $p = shift; $p->cwd; }
sub cwd { require Cwd; Cwd::cwd; }
1; -----><8-----
-----><8----- # test.pl package MyModule; use Module; use base 'Module'; use Cwd;
package main; MyModule->new; -----><8-----
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |