in reply to Re: Recursive sub
in thread Recursive sub

Thanks dragonchild, I am aware that I am not stealing code. I was just making the point that I don't want to just cut and paste code that I don't understand. For me to learn Perl I need to be able to write my own code so that I get a full understanding.

I hadn't seen the File::Spec module, I will read up on it.

In your code you are short forming

 foreach (glob shift)

I assume by not supplying the array. Is this the case?

This is one area that I am having difficutly in reading other peoples code at this point, Perl makes allot of assumptions that I am not aware of yet, or just don't remember at this point.

Paul Neale

Replies are listed 'Best First'.
Re: Re: Re: Recursive sub
by LazerRed (Pilgrim) on Sep 23, 2003 at 20:29 UTC
    There are not many that I can help because of my relative new-ness to perl! But you seem willing to put forth the effort, and I can answer some of your questions. Well, I would like to suggest you pick up a copy of Learning Perl 3rd Ed Written by our very own Merlyn. Trust me, you will learn a lot from it.

    In the line foreach (glob shift) Perl is using @_ as it's default.

    LR

    Whip me, Beat me, Make me use Y-ModemG.