est has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; main(); exit 0; sub main { my @files = get_xml_files(); extract_file(\@files); } sub get_xml_files { my @files = glob(*.xml); return @files; } sub extract_file { my ($file) = @_; # Do something... return; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing A Stand Alone Application
by BrowserUk (Patriarch) on Mar 12, 2008 at 12:53 UTC | |
by est (Acolyte) on Mar 13, 2008 at 00:06 UTC | |
by BrowserUk (Patriarch) on Mar 13, 2008 at 00:31 UTC | |
by est (Acolyte) on Mar 13, 2008 at 00:53 UTC | |
by BrowserUk (Patriarch) on Mar 13, 2008 at 01:49 UTC | |
| |
|
Re: Testing A Stand Alone Application
by moritz (Cardinal) on Mar 12, 2008 at 12:01 UTC | |
|
Re: Testing A Stand Alone Application
by Thilosophy (Curate) on Mar 13, 2008 at 02:19 UTC |