Hi all, I have a couple of questions: I am new to perl, but have had programming experience before; I am trying to put together a perl program that fixes Mapinfo Workspaces by replacing dud file links with working links. The workspace is text based so perl is a good bet. Workspaces are made up of links to other network drives/files, so moving one file means the workspace crashes. Usually it's a pain staking process to fix. I want to automate it.
1. How can I get a directory listing ONLY? Also, can I get perl to give me ALL my drives, eg. network drives? I want to put them into an array so I can search directories and sub-directories for files. 2. I use a pattern matching operator to determine directories and files, it's not reliable-but once I've gone through the directory listing and isolated the directories, how do I put this into an array for the same reason as in (1)??? I keep getting blank arrays. 3. How do I do a pattern search that looks for capital words only? 4. Descending a treet directory...fraught with problems...any ideas. 5. Last question (I promise :) Once I find my files and put them into an array. How can I modify the search/replace function to loop through the entire array and replace the text in the workspace with the text in the array? Thanx a million, I know I've asked for a ton of stuff, but I don't have a good perl book and the web examples aren't clear enough...I'm spending a lot of time learning stuff not knowing whether I'm heading in the right direction...which is good of course...but also bad :) Ben Crane ([EMAIL PROTECTED]) Wokingham DC __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]