Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Correct Regex for reading stock symbol?

by Anonymous Monk
on Jan 31, 2006 at 18:11 UTC ( #526830=note: print w/replies, xml ) Need Help??


in reply to Re: Correct Regex for reading stock symbol?
in thread Correct Regex for reading stock symbol?

Thanks for all the help. I realized that It may not be that portion of the code thats causing a CGI Timeout. I'm pretty sure its because of the "O.O" part in the symbol "AIDO.OB" thats causing a breakage somewhere in my script. ALl other symbols work fine, and if I try adding a "." anywhere inside a symbol, it will stall. So for ex. IF I tried using "BLAH.SYMB" then it will still stall.

I guess I will try breaking down my script more and try to find the problem.

Thanks!
  • Comment on Re: Correct Regex for reading stock symbol?

Replies are listed 'Best First'.
Re^2: Correct Regex for reading stock symbol?
by davido (Cardinal) on Jan 31, 2006 at 18:17 UTC

    What are you doing with the 'untainted' data?


    Dave

      I found out where the problem is. I'm combining the symbol with a date generated. The file is supposed to be a stock symbol chart I have stored on my local drive. So I'm using the following code to see if it exists or not:
      my $extx = ".jpg"; my $fx = "2006-01-05"; if( -f "D:/stock_charts/$symbol$fx$extx" ) { $filename = $fx; $com_hash{'num'} = "$filename"; last; } #so the filename should look like "AIDO.OB2006-01-05.jpg"
      I think it has something to do with the proper tainting also. I'm going to try turning taint mode off to see if it stops it from timing out.

      Thanks

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2021-04-23 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?