Re: query about code

2007-07-04 Thread Jenda Krynicky
From: "Amichai Teumim" <[EMAIL PROTECTED]> > Can someone explain to me what this script really does? I mean I see that it > lists dir within dir. But what is the code doing? For example all the blue > highlighted stuff, what is it doing? There is no highlighting in a plain text email! > #!/usr/

Re: query about code

2007-07-04 Thread Martin Barth
Hi, it was hard to see the blue stuff.. :) On Wed, 4 Jul 2007 16:14:47 +0300 "Amichai Teumim" <[EMAIL PROTECTED]> wrote: > #!/usr/bin/perl > > $startdir = "/lib"; > > $level = 0; > > list_dirs($startdir,$level); calls &list_dir with $startdir and $level. > > sub list_dirs(){ > my $dir

query about code

2007-07-04 Thread Amichai Teumim
Can someone explain to me what this script really does? I mean I see that it lists dir within dir. But what is the code doing? For example all the blue highlighted stuff, what is it doing? #!/usr/bin/perl $startdir = "/lib"; $level = 0; list_dirs($startdir,$level); sub list_dirs(){ my $dir