Re: use variables from another file

2008-10-09 Thread Jeff Pang
> Message du 09/10/08 11:58 > De : "Noah" > A : "Jeff Pang" > Copie à : "Perl Beginners" > Objet : Re: use variables from another file > > my @elementList; > replace the line above to: our @elementList; For the reasons, see pls: http:

Re: use variables from another file

2008-10-09 Thread Noah
7;, blah2 => 'again', }, ); 1; Jeff Pang wrote: > Message du 08/10/08 14:55 > De : "Noah" > A : "Jeff Pang" > Copie à : "Perl Beginners" > Objet : Re: use variables fr

Re: use variables from another file

2008-10-08 Thread Jeff Pang
> Message du 08/10/08 14:55 > De : "Noah" > A : "Jeff Pang" > Copie à : "Perl Beginners" > Objet : Re: use variables from another file > > > Hi there, > > I am using the first example and the array variable always is blank. Any >

Re: use variables from another file

2008-10-08 Thread Noah
uot;0x3e1fcbd4e91ca24bb276914de3764cdf"; 1; $ cat usedata.pl require 'mydata.pl'; print $key1[64]; cheers, Noah Jeff Pang wrote: > Message du 08/10/08 12:45 > De : "Noah" > A : "Perl Beginners" > Copie à : > Objet :

RE: use variables from another file

2008-10-08 Thread Manasi Bopardikar
sday, October 08, 2008 5:00 PM To: Manasi Bopardikar Cc: beginners@perl.org Subject: Re: use variables from another file okay something still is not working for me. What am I doing wrong? main.pl --- snip #!/usr/bin/perl # use Expect; use strict; use elements; # # for my $element

Re: use variables from another file

2008-10-08 Thread Noah
okay something still is not working for me. What am I doing wrong? main.pl --- snip #!/usr/bin/perl # use Expect; use strict; use elements; # # for my $element (@elementList) { from elements.pm snip # package elements; my @elementList = ( {

RE: use variables from another file

2008-10-08 Thread Manasi Bopardikar
Hi, I think the best way this can be done is using perl module or .pm file and then using it(use .pm ) and then calling functions. -Original Message- From: Noah [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 4:15 PM To: Perl Beginners Subject: use variables from another

use variables from another file

2008-10-08 Thread Noah
Hi there, I have created a common perl file that other perl programs can refer to so I only have one place to set the values for many different perl programs. all perl programs will call this common perl file. How can this be done? Cheers, Noah -- To unsubscribe, e-mail: [EMAIL PROTECTED