Re: best way how to remove CRLF \n ....

2001-03-22 Thread $Bill Luebkert
Wagner-David wrote: > > If only concerned about cr/lf then chomp($value) will remove if there > otherwise will leave alone. > Also could do tr/.;'<>// Add others you want to truly remove non alpha > numeric values. chomp won't do it normally. chomp only removes the $/ string which is usually j

RE: best way how to remove CRLF \n ....

2001-03-22 Thread Wagner-David
If only concerned about cr/lf then chomp($value) will remove if there otherwise will leave alone. Also could do tr/.;'<>// Add others you want to truly remove non alpha numeric values. Wags ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March

RE: Module Load

2001-03-22 Thread Bill Odom
Kulkarni, Tushar asked: > I have to load this module depending on operating > system. How can I do this? > Read Recipe 12.3, "Delaying use Until Run Time," in the _Perl_Cookbook_. Briefly, you can break the 'use' into its 'require/import' equivalent, and wrap the whole thing in a BEGIN block with

Re: Reading from SQL, Writing to CSV ...

2001-03-22 Thread Joe Schell
Jones Robert Contr 81 CS/SCK wrote: > > From: Joe Schell [mailto:[EMAIL PROTECTED]] > Jones Robert Contr 81 CS/SCK wrote: > > > > I'm running the following snippet of code below. Every time I > read > > a field in that has a series of alpha with commas in it there are > problems. > > Aft

Re: User Input Checking

2001-03-22 Thread Joe Schell
"Gray, Josh" wrote: > > I have always read that it is important (for security) to check user input > for code fragments, especially if the input is then posted to the screen for > whatever reason. Can anyone send me an example or two of good ways to check > for possibly malicious input? > > I u

Module Load

2001-03-22 Thread Kulkarni, Tushar (GEL, MSX)
Hi All, I have a program which I want to execute both on WinNT and HP-UNIX. The program logic requires to create child processes. So on Unix I use fork and on WinNT I use Win32::Process::Create. I don't want to maintain 2 different versions of same script for different platforms. As Win32

RE: Reading from SQL, Writing to CSV ...

2001-03-22 Thread Jones Robert Contr 81 CS/SCK
From: Joe Schell [mailto:[EMAIL PROTECTED]] Jones Robert Contr 81 CS/SCK wrote: > > I'm running the following snippet of code below. Every time I read > a field in that has a series of alpha with commas in it there are problems. > After each of these multiple comma fields is read, the n

User Input Checking

2001-03-22 Thread Gray, Josh
I have always read that it is important (for security) to check user input for code fragments, especially if the input is then posted to the screen for whatever reason. Can anyone send me an example or two of good ways to check for possibly malicious input? I understand if they post javascri

Win32::OLE + Exchange mailboxes

2001-03-22 Thread Ben Hall
Hi Guys, Ok, so I'm accessing our Exchange mailbox via Perl to poll for certain emails. I open up a Win32::OLE->new("MAPI.Session") object, get the stores and so on, then I loop through the message collection using: for my $msg (in $folder->Messages) { # simple example print "Subject: ".$msg

formmail configuration

2001-03-22 Thread Trine Schunck
Can anyone tell me how to configure the formmail.pl so it works with windows2000? I have doubts about what to write in the line: $mailprog = 'c:/download/diverse/sendmail'; and in the line: @referers = ('worldwidemart.com','www.henrik-larsen.dk'); Should I write the IP# instead? _

test

2001-03-22 Thread Trine Schunck
_ Trine Schunck Civilingeniør HENRIK LARSEN Rådgivende Ingeniørfirma F.R.I Godthåbsvænget 4 2000 Frederiksberg Telefon +45 38 10 42 04 Fax +45 38 11 42 04 Mobil telefon +45 22 10 42 88 E-mail

SELECT or THREAD ???

2001-03-22 Thread Marian Bielik
Hi all ! I have got TCPIP server which waits for connection. When connection is established I need periodicaly check if I have got some data in database for this connection until connection will not closed. QUESTION: It means that I need new thread in the background what will check the database

Re: "use vars" applies outside of a file?...

2001-03-22 Thread Philip Newton
Bennett Haselton wrote: > Also I noticed that in the example below, you can have this > code in test.pl: > > use strict; > use test3; > my $x = 5; > print $x; > > and run it under perl -w, without any warnings -- even though > the "my $x" statement clobbered the value of $x that was > obtained

Re: "use vars" applies outside of a file?...

2001-03-22 Thread Philip Newton
Bennett Haselton wrote: > The documentation for "use vars" says: "Unlike pragmas that > affect the $^H hints variable, the use vars and use subs > declarations are not BLOCK-scoped. They are thus effective > for the entire file in which they appear." Note that it makes no statements about other

response object parsing of "Content-Location" header

2001-03-22 Thread Bennett Haselton
Documentation of the "base" method of the "response" object says: >>> The base URL is obtained from one the following sources (in priority order): 1.Embedded in the document content, for instance in HTML documents. 2.A ``Content-Base:'' or a ``Content-Location:'' header in the response. For

Re: workaround for "use CGI" making scripts output UNIX text?

2001-03-22 Thread $Bill Luebkert
Bennett Haselton wrote: > If you run this script on Windows: > > use CGI; > print "hi\n"; > > and redirect the output to output.txt and open output.txt in Notepad, you > can see that the output became UNIX-style as a result of the "use CGI;" > directive -- the newline was output as a UNIX newli

workaround for "use CGI" making scripts output UNIX text?

2001-03-22 Thread Bennett Haselton
If you run this script on Windows: use CGI; print "hi\n"; and redirect the output to output.txt and open output.txt in Notepad, you can see that the output became UNIX-style as a result of the "use CGI;" directive -- the newline was output as a UNIX newline (0x0a) instead of a Windows newline (0