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: [iphone] Grepping a file in all the files in an array and storing them in a hash: Edit Log



BillKSmith
Veteran

Oct 26, 2010, 7:13 AM


Views: 7664
Re: [iphone] Grepping a file in all the files in an array and storing them in a hash

You seem to be using windows. File or directory names that contain whitespace need special treatment. Note: This is a windows, not a perl issue. It is possible to code your strings to satisfy the quote requirements of both perl and windows, but it is difficult. It is far easier to use the alias that windows provides for the troublesome name. To find the alias for 'Program Files', go to a command window and type dir c:\ /X. Find 'Program Files' and read the alias. It is probably 'progra~1'.

Otherwise, your code looked good to me, but it did not work until I used the glob function explicitly.

Refer to perldoc perldsc for lots of examples of data structures in perl.
Good Luck,
Bill

(This post was edited by BillKSmith on Oct 26, 2010, 1:05 PM)


Edit Log:
Post edited by BillKSmith (Veteran) on Oct 26, 2010, 1:05 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