Thread Require & Return (11 answers)
Opened by BrownWolf at 2003-12-16 01:41

esskar
 2003-12-16 01:54
#76249 #76249
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
[quote=BrownWolf,16.12.2003, 00:41]Hi,

vielleicht liegts daran das ich mich kaum noch mit Perl beschäftige aber ich habe nen kleines Problem :)

Also ich habe zb eine "config.dat" in der folgendes steht:

Quote
return {
  config => {
                bla => 1,
                blub => 2
                },
};


Diese möchte ich jetzt mit require in ein Perlscript einbinden und dann auf das return {} zugreifen.

Wie mache ich das ? Bin da grad überfragt.[/quote]
Code: (dl )
1
2
3
4
5
6
7
our retval = ( config => {
bla => 1,
blub => 2
},
);

1;

View full thread Require & Return