avanta has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warning; use xyz; print @array;
kindly help! I know that i can do the parsing in the main file but due to some reasons I want to get values like this only.package xyz; use strict; use warnings; require 5.008; require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw( @array ); my $file = "qwerty.txt"; open FILE, "< $file"; my @array = <FILE>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using variables, arrays etc from a perl module in main script.
by kennethk (Abbot) on May 12, 2010 at 16:27 UTC | |
|
Re: Using variables, arrays etc from a perl module in main script.
by walkingthecow (Friar) on May 12, 2010 at 16:46 UTC | |
by kennethk (Abbot) on May 12, 2010 at 19:17 UTC | |
by walkingthecow (Friar) on May 12, 2010 at 19:40 UTC | |
by kennethk (Abbot) on May 12, 2010 at 19:46 UTC | |
by Anonymous Monk on Feb 27, 2014 at 05:19 UTC |