CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [eyebrowsbutt] Reading files from directory and subdirectory: Edit Log



Zhris
Enthusiast

Sep 11, 2012, 1:36 PM


Views: 1583
Re: [eyebrowsbutt] Reading files from directory and subdirectory

Hey,


Code
my $directory = shift; 
#OR
my ($directory) = @_;
#OR
my $directory = $_[0];


Also, I just formatted your code by hand to see that the two closing braces at the end are necessary. I couldn't tell that the GC subroutine was contained within the list_recursively subroutine (it would probably be best to separate). Wrap code you post here in code tags.

Chris


(This post was edited by Zhris on Sep 11, 2012, 1:41 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Sep 11, 2012, 1:37 PM
Post edited by Zhris (Enthusiast) on Sep 11, 2012, 1:38 PM
Post edited by Zhris (Enthusiast) on Sep 11, 2012, 1:40 PM
Post edited by Zhris (Enthusiast) on Sep 11, 2012, 1:41 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives