Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: How to search string in all files in directory

by parv (Parson)
on Dec 11, 2008 at 06:33 UTC ( [id://729617]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to search string in all files in directory
in thread How to search string in all files in directory

Put a semicolon after use File::Find::Rule in your code, missing from OP.

Replies are listed 'Best First'.
Re^4: How to search string in all files in directory
by oh5yw (Novice) on Dec 11, 2008 at 12:39 UTC
    well after putting semicolon, got this huge error list:
    Software error: Global symbol "$LocationOfTheStartDir" requires explicit package name +at testi7.cgi line 31. Global symbol "$SearchExp" requires explicit package name at testi7.cg +i line 32. Global symbol "@AllFilePaths" requires explicit package name at testi7 +.cgi line 33. Global symbol "$LocationOfTheStartDir" requires explicit package name +at testi7.cgi line 33. Global symbol "$SearchExp" requires explicit package name at testi7.cg +i line 33. Global symbol "$InputFile" requires explicit package name at testi7.cg +i line 35. Global symbol "@AllFilePaths" requires explicit package name at testi7 +.cgi line 35. Global symbol "@AllLinesFromTheFile" requires explicit package name at + testi7.cgi line 36. Global symbol "$InputFile" requires explicit package name at testi7.cg +i line 36. Global symbol "$line" requires explicit package name at testi7.cgi lin +e 37. Global symbol "@AllLinesFromTheFile" requires explicit package name at + testi7.cgi line 37. Global symbol "$line" requires explicit package name at testi7.cgi lin +e 38. Global symbol "$line" requires explicit package name at testi7.cgi lin +e 39. Global symbol "@AllLinesFromTheFile" requires explicit package name at + testi7.cgi line 43. Execution of testi7.cgi aborted due to compilation errors.
      Please pick up the "Learning Perl" book or some other Perl resources to familiarize yourself before you do anything substantial in Perl. Use Super Search to search around here for more on the subject.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://729617]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-19 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found