in reply to Re: Re: Module questions
in thread Module questions

I tried not including CGI::Cookie and only haveing use CGI.

Unforunately this did not work.

It seems you have to include both.

Replies are listed 'Best First'.
Re: Re: Re: Re: Module questions
by runrig (Abbot) on Apr 05, 2001 at 21:57 UTC
    That does not seem correct, I ran this:
    #!/usr/bin/perl -l -w use strict; use CGI qw(:all); print for keys %INC; my $c = cookie('bob'); print "--------"; print for keys %INC;
    And got these results:
    $ ./tst | grep "^[C-]" Carp.pm CGI/Util.pm CGI.pm -------- Carp.pm CGI/Util.pm CGI/Cookie.pm CGI.pm
    So using just 'CGI' SHOULD work and load the CGI::Cookie module when you call the cookie function.