Re: encrypt a text file

2008-08-27 Thread Dan Baker
[EMAIL PROTECTED] wrote: how to encrypt a text file and decrypt it with perl? for example, I have a config file, svr.conf I want to encrypt it to svr.conf.encrypt. But I should also have the ability to decrypt the encryped one to the original text. when using crypt

Re: matching ' in regx

2008-08-26 Thread Dan Baker
Mr. Shawn H. Corey wrote: $UploadedImage = 'badname\'s.jpg' ; if ( $UploadedImage =~ m/'/ ) { ... How do I match the ' ? You match it exactly like you're doing. Since CGI is involved, I'd look elsewhere from the problem. Are you absolutely certain that some software between the browser a

matching ' in regx

2008-08-26 Thread Dan Baker
I have a thing driving me NUTS trying to detect a ' in a variable with regex, and either strip it out or at least detect and error out. for instance, this just does NOT work. $UploadedImage = 'badname\'s.jpg' ; if ( $UploadedImage =~ m/'/ ) { &Warning_Status( $cCgiStatusFile ,