On Dec 30, 2007 6:29 AM, jwaixs <[EMAIL PROTECTED]> wrote:
snip
> I just want to split up a big file into smaller parts. But I don't
> know which functioncall I should use for it. Peng is using "require",
> is this the standard way for importing a file?
snip
The require function is one of the stan
On Dec 30, 2007 7:29 PM, jwaixs <[EMAIL PROTECTED]> wrote:
>
> I just want to split up a big file into smaller parts. But I don't
> know which functioncall I should use for it. Peng is using "require",
> is this the standard way for importing a file?
>
Generally we use 'require' to read a config
On Dec 30, 6:45 am, [EMAIL PROTECTED] (Patmarbidon) wrote:
> Hello if you want to share variables content you might to use 'our'
> instead of 'my'.
Yes, that does it! Thank you!
>
> But I don't understand your example with 'use "file1.pl"'.
>
> I always use 'use module_name' and never 'use progra
Hello if you want to share variables content you might to use 'our'
instead of 'my'.
But I don't understand your example with 'use "file1.pl"'.
I always use 'use module_name' and never 'use program_name'
Can you tell us more
[EMAIL PROTECTED] a écrit :
Hello,
Could someone tell me if this i
On Dec 29, 2007 8:32 PM, <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Could someone tell me if this is possible and if it is how I do it. I
> have the following two file;
>
> file1.pl
> ---
> print "$testvar\n";
> ---
>
> file2.pl
> ---
> my $testvar = 37;
> use "file1.pl";
> ---
>
> If I run file2.pl
Hello,
Could someone tell me if this is possible and if it is how I do it. I
have the following two file;
file1.pl
---
print "$testvar\n";
---
file2.pl
---
my $testvar = 37;
use "file1.pl";
---
If I run file2.pl (perl file2.pl) I will of course only see a newline.
But is it possible to export t