Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: strict and require.

by uwevoelker (Pilgrim)
on Jan 03, 2002 at 13:51 UTC ( #135952=note: print w/replies, xml ) Need Help??

in reply to strict and require.

This works (tested):
#!/usr/bin/perl -w use strict; use vars qw($data); require ""; print $data;
... and in 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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://135952]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2022-05-23 10:47 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (81 votes). Check out past polls.