Okay, lately I have been addicted to perl and I've learned a lot, but I can't figure out how to add something to something after such and such.
I made a simple ftp scanner that scans through and outputs all files and folders recursively, well, up to a certain point. Right now I use this my $global = 'www/*'; which will scan all folders and output their contents after the www folder like so
www/folder1:
files
www/folder2:
files
And so on.
If I use my $global = 'www/*/*'; It will output:
www/folder1/folderinfolder1:
files
www/folder2/folderinfolder2:
files
And so on.
Now, I know this isn't exactly the best way about doing it, but I have spent ages trying to find how to simply print all content from the ftp recursively, and during that search I found many things and examples which didn't actually work, but then I finally managed to figure it out (sort of) and get to this point. So, my question is, how could I add /* to the initial www/* so it becomes www/*/* after it has finished scanning www/*?
Also sorry but I can't find anywhere that tells me how to format posts.