From: "David Christensen" <dpchr...@holgerdanske.com> > itshardtogetone: > > > have my perl installed in c:\perl > > I wish to write my own module ... > > It's easiest to learn Perl on Unix/ Linux/ BSD/ etc. (I prefer Debian > and FreeBSD.)
No. It's easiest to learn Perl on whatever OS you are familiar with. While the Unix origin of Perl still shows, it's silly to climb two learning curves at once. To learn how to create modules, read the documentation that comes with your perl. Namely the perlmod and pernewmod manpages. You should have a link to the HTML version of the docs somewhere in your start menu, you can find the docs online at http://search.cpan.org/perldoc?perlmod and http://search.cpan.org/perldoc?perlnewmod or you can display them via perldoc on the command line. You can also install a doskey macro that'll let you redirect the perldoc's output to a new browser window by running: doskey pdoc=perldoc -ohtml -T -w index $* > %TEMP%\perldoc_temp.html && start %TEMP%\perldoc_temp.html and then pdoc perlmod The problem with your test module was that you cannot export lexical variables (declared with my). Besides you are supposed to export subroutines, not variables. Jenda ===== je...@krynicky.cz === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/