in reply to strict and require.

This works (tested):
#!/usr/bin/perl -w use strict; use vars qw($data); require "load_configfile_data.pl"; print $data;
... and in load_configfile_data.pl this:
$data = "Test erfolgreich."; 1;
Good bye, Uwe

Replies are listed 'Best First'.
Re: Re: strict and require.
by Baz (Friar) on Jan 03, 2002 at 20:45 UTC
    Ok Guys, Success, and i wrote my first module in the process. Altough i did have to add the line
    use lib '.';
    even though i presumed the . directory was always stored in @INC
    Anyway THanks.
      Yes it is. But as the last entry in the lib array. Maybe there was another file with the same name in your @INC path.