Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by perl21

  1. perl21

    mod_perl variable sharing problem

    Still not sure why my example is not failing, Maybe because the sub is in it's own pm file. Perhaps my problem is not with variables getting mixed up between the pm file use()d by the parent file. But variables getting mixed up within the pm file, or within the parent program. I think this...
  2. perl21

    high end characters and cgi forms

    Try my subs for encoding & decoding chars like the browser does. sub decode{ $input = $_[0]; $input=~s~%25~%~g; $input=~s~%21~!~g; $input=~s~%23~#~g; $input=~s~%24~\$~g; $input=~s~%5E~\^~g; $input=~s~%26~\&~g; $input=~s~%28~\(~g; $input=~s~%29~\)~g; $input=~s~%3D~=~g; $input=~s~%7B~{~g...
  3. perl21

    Perl Redirect Script

    Make sure you are not printing a single thing above this line in your code print "Location: http://www.site.com/"; And change this line to print "Location: http://www.site.com/\n\n"; Tony
  4. perl21

    mod_perl variable sharing problem

    Hey Fish, I used to compile my perl because my boss was worried someone would break into our server and steal all our code. Long story but I wound up not using many modules because of the compiling problems. Now that I'm a mod_perl guy, I'm more than happy to use CGI.pm, thanks for reminding...
  5. perl21

    mod_perl variable sharing problem

    Thanks Fish I am getting randon results, lol. Can't wait to get strict employed on my scripts. I'm really confused on the global variable issue. I thought I had to use vars to create a global variable. So my %something will automatically make it null. I had been using strict on this library...
  6. perl21

    SSL web connection

    I was surprised too, but yes. UserAgent handles Crypt::SSLeay without you needing to call it. What's AFAIK?
  7. perl21

    SSL web connection

    Hi, I saw this post and thought I'd post a bit from my parsing script which parses a site that requires ssl connections. It's get so you have to convert it to post. use LWP::UserAgent; require HTTP::Request; $ua = new LWP::UserAgent; $ua->protocols_allowed( [ 'http', 'https'] ); $request =...
  8. perl21

    mod_perl variable sharing problem

    Hey Jaa, Thanks a lot for looking over my post. It's a lot of info to review and I greatly appreciate it. I enjoy a good challenge but this one is quite difficult because I can't make it fail. I have to review the sections called into question and make my best guess or guesses. I thought...
  9. perl21

    Will someone start a new group for mod_perl?

    Hi All, I was looking for a more appropriate place to post my questions since I am a mod_perl user. This is the closest thing. Some people have replied to my posts so I know some mod_perl users are in here. Will someone start a group for mod_perl? I would but I don't want to be the...
  10. perl21

    mod_perl variable sharing problem

    On second thought, the problem may be with another sub. I also have another subroutine in standard.pm which actually builds the information in html. The file which calls first the cookie sub then this sub is called. application.sd .sd I made up, I'm using .pl & .cgi for other types of perl &...
  11. perl21

    mod_perl variable sharing problem

    I have mod_perl 2.1 installed with Apache 2.5.3. In a library called, standard.pm, I have a sub routine sub GetCookies{ undef(%Cookies); undef(@ReturnCookies); shift; @ReturnCookies = @_; $cookie_flag = 0; if ($ENV{'HTTP_COOKIE'}) { if ($ReturnCookies[0] ne '') {...
  12. perl21

    Perl script to launch application from web browser

    Have you tried a simple, `/opt/Acrobat/bin/acroread`; That's what I use for initiating programs in the system from the browser all the time. But I'm not sure what your expecting acroread to do. Tony
  13. perl21

    Strange Apache2 errors

    Hi Guys, This is a very very strange occurance. I have a system in place so that when Apache2 has an error it pulls up a cgi which emails me the environment information and details of the error. I mostly focus on 500 errors. Since I upgraded my site to run on mod_perl 2.0.0 I have been getting...
  14. perl21

    Google & Alexa?

    Does anyone know for sure if google is still factoring in data from Alexa to calculate a sites rank? Everytime I get my Alexa rank to go up, my listing in google goes up as well. I used to be on the first page until a few years ago. Then It was rumored that Alexa was the reason. I had no rank...
  15. perl21

    Perl Strict and my $var

    Hey Kevin, Thanks. If I use strict then I have to declare all variables with my, is there a reason I would want to have a variable not local to the block it was declared in? And when you say local, I assume that if I declare a variable inside a sub routine or library it's not shared with the...

Part and Inventory Search

Back
Top