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
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
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
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
"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
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
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
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
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
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?
_
_
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
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
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
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
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
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
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
17 matches
Mail list logo