Re: 2 files, 1 package, shared constants

2009-03-01 Thread Marc Lucksch
Stanisław T. Findeisen schrieb: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello there My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a common file with constants and shared routines. The question is: what is

Re: 2 files, 1 package, shared constants

2009-03-01 Thread Gunnar Hjalmarsson
Marc Lucksch wrote: Stanisław T. Findeisen schrieb: Subject: 2 files, 1 package, shared constants Hello there My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a common file with constants and shared routines

2 files, 1 package, shared constants

2009-02-25 Thread Stanisław T. Findeisen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello there My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a common file with constants and shared routines. The question is: what is the most standard way to export

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: snip Funny thing is that in two.pl MyPackage-MY_FIRST_CONSTANT works, but neither of these: print '' . MY_FIRST_CONSTANT . \n; print '' . MyPackage::MY_FIRST_CONSTANT . \n; Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, \n; print

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Stanisław T. Findeisen
Gunnar Hjalmarsson wrote: Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, \n; print MyPackage::MY_FIRST_CONSTANT, \n; Ee... you mean . instead of , right? This: print MY_FIRST_CONSTANT . \n; print MyPackage::MY_FIRST_CONSTANT . \n; yields this output:

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: Gunnar Hjalmarsson wrote: Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, \n; print MyPackage::MY_FIRST_CONSTANT, \n; Ee... you mean . instead of , right? No, I mean ,. You can print() a list. -- Gunnar Hjalmarsson Email:

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a common file with constants and shared routines. First: Please disregard my theory about concatenation. Concatenation is ok, which is