> I'm using a script that's getting parameters passed to it via a form.
> Here's the
> relevant part of the form:
>
>
> 0 (Today's additions)
> 1 (Yesterday)
> Last Seven Days
> Last 30 Days
Haha so you made a very serious HTML mistake, ; - )
inside 'option' you should write as
opt na
Of course, once again I forgot to explain myself.
/^(+|-)?\d+$/ means:
/^ : Starting at the beginning of the variable
(+|-) : '+' or '-' (see next line)
? : Match zero or one of the above character
\d+: Followed by one or more digits
$/ : Followed by the end of th
For those of you using Outlook (you know who you are, that's right, you in
the red shirt), I personally recommend setting a rule to move all of your
mailing list items to another folder and then viewing them by conversation
topic. That way you don't have to sift through fifty items about someth
Except that their checking for an integer, so it's even simpler than that.
if($scalar =~ /^(+|-)?\d+$/){
print "It's an integer!\n";
}
Will check for an integer, with or without a plus or minus sign.
-Original Message-
From: Shawn
To: Donnie Jones; [EMAIL PROTECTED]
Sent: 6/29/02 8:
> On Saturday, June 29, 2002, at 11:16 , Ronnie Livingston wrote:
>
> > I have a question though, will someone still be able to post to the list
> > if they are no longer subscribed to them??
>
> An Interesting problem -
>
> What I do is have my mail filter my lists into the requisite folder
I know you figured out the problem, but as a side note, the reason why
"if($datemod = 7)" worked for everything is that you were assigning the
value 7 to the variable $datemod. If it is successful, then the expression
will return true.
I think you must have known this on some level beca
the problem was with the form; I figured it out. Thanks.
Tara
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm using a script that's getting parameters passed to it via a form.
Here's the
relevant part of the form:
0 (Today's additions)
1 (Yesterday)
Last Seven Days
Last 30 Days
In the script that's referenced like so:
my $datemod = param('datemod');
At the end of the script I want to open one of
- Original Message -
From: "Donnie Jones" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 29, 2002 8:03 PM
Subject: Check for integer
> Hello,
Hello Donnie,
>
> I was wondering if anyone knows how someone can test the value held by a variable in
>perl to see if it
Donnie Jones wrote:
>
> Hello,
Hello,
> I was wondering if anyone knows how someone can test
> the value held by a variable in perl to see if it is
> an integer?
perldoc -q integer
Found in /usr/lib/perl5/5.6.0/pod/perlfaq4.pod
How do I determine whether a scalar is a
number/whol
Hello,
I was wondering if anyone knows how someone can test the value held by a variable in
perl to see if it is an integer?
My current project is using the perl DBI, and I was users to enter data, but to make
sure that they don't enter strings
in integer fields...
Please help.
Thanks,
--D
> A decent newsreader does more than just allow you to read. It keeps track
> of which messages you already read, it only downloads headers and so you
> can choose which bodies to retrieve, it lets you post and reply, score the
> articles and you can setup a killfile.
>
ah I see, any recommendati
On Saturday, June 29, 2002, at 02:31 , Ohad Ohad wrote:
[..]
this is not really possible - since america is the land
that brought you words like
unix
radar
sonar
IPO
so they are not really good at knowing what they think
is a legitimate word to begin with.
Amer
_
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Saturday, June 29, 2002, at 11:16 , Ronnie Livingston wrote:
> I have a question though, will someone still be able to post to the list
> if they are no longer subscribed to them??
An Interesting problem -
What I do is have my mail filter my lists into the requisite folders
and then go at t
on Sat, 29 Jun 2002 18:16:21 GMT, Ronnie Livingston wrote:
> I sympathize with Yasen since I have the exact same problem. I often
> find that I delete most of the messages before I read them due to the
> overwhelming numbers. btw, thanks for the link Felix there is now a
> webinterface for the
[EMAIL PROTECTED] wrote:
>
> Hello!
Hello,
> I still can't delete the directories which I created using:
> mkdir("$path/$nummer",0775);
> mkdir("$path/$nummer/Pictures", 0775);
> mkdir("$path/$nummer/Sound", 0775);
>
> I'm supposed to write images to Pictures and sounds to Sound directory. I
>
I sympathize with Yasen since I have the exact same problem. I often find
that I delete most of the messages before I read them due to the
overwhelming numbers. btw, thanks for the link Felix there is now a
webinterface for the archives so one doesnt need a newsreader
http://nntp.x.perl.org/grou
on Sat, 29 Jun 2002 15:08:40 GMT, George Thomas wrote:
> Yasen, you might want to consider changing your subscription to the
> digest form if large quantities of messages are a problem.
Or get yourself a decent newsreader and point it to nntp.perl.org.
--
felix
--
To unsubscribe, e-mail: [EM
Perhaps we need a new module, PERLLIST::PARSE, that parses the incoming
message and prefixes a category to the subject line so we can set up
incoming mail filters to automatically dispose of 'dis'interesting messages
I.E, (from some recent subject lines):
FILE::changing the permission to owner
VA
On Saturday, June 29, 2002, at 08:08 , George Thomas wrote:
[..]
> Consider too that if one excludes the experienced programmer, many
> questions will go unanswered or may be answered incompletely or
> incorrectly. The coders with the experience have seen most of it and know
> quite a few tric
On Saturday, June 29, 2002, at 05:37 , <[EMAIL PROTECTED]>
wrote:
> Hello there!
> I wrote a script which I tested on Linux and Windows XP.
> The following code works differently on the OS.
> $path = /data/../dir/Sound
> $filename = $query->param('filename');
$filename ||= "safety.txt";
> ope
My two cents:
"Beginner" is less a classification of subject matter than of ability to figure out
the answer on one's own. I, for one, had to learn perl, and learn it quickly, on the
job. This put me in a position where I was using DBI and a handful of modules before
I'd had time to finish _L
Good point, Ovid.
Consider too that if one excludes the experienced programmer, many questions will go
unanswered or
may be answered incompletely or incorrectly. The coders with the experience have seen
most of it and
know quite a few tricks.
They are an invaluable resource. I wouldn't want th
--- Yasen Petrov <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I think there's too many andvanced users here who ask DBI questions. I can't
> understand anything. Perl.beginners and perl.beginners.cgi are both too
> overloaded. Noone can read 80 massages a day, in it? I mean perl.beginners.
> There
Hello there!
I wrote a script which I tested on Linux and Windows XP.
The following code works differently on the OS.
$path = /data/../dir/Sound
$filename = $query->param('filename');
open(DIR,">$path/$filename");
binmode(DIR);
print DIR $_;
close (DIR);
On Linux, instead of the $filename being wr
Hello!
I still can't delete the directories which I created using:
mkdir("$path/$nummer",0775);
mkdir("$path/$nummer/Pictures", 0775);
mkdir("$path/$nummer/Sound", 0775);
I'm supposed to write images to Pictures and sounds to Sound directory. I
did it,and it worked, but the problem is, it was j
On Sat, Jun 29, 2002 at 02:20:00AM -0700, Dan Fish wrote:
> Correct if I'm wrong, but I think I understand the following warning means
> I'm trying to make use of an empty or undef variable,
As it says in perldoc perldiag:
Use of uninitialized value%s
(W uninitialized) An undef
Correct if I'm wrong, but I think I understand the following warning means
I'm trying to make use of an empty or undef variable, but if the problem
isn't obvious, how do I find it? and what does the chunk # mean?
Use of uninitialized value at MMC/Online_Entry.pm line 47, chunk
541.
Thanks,
-Dan
Hi there,
I think there's too many andvanced users here who ask DBI questions. I can't
understand anything. Perl.beginners and perl.beginners.cgi are both too
overloaded. Noone can read 80 massages a day, in it? I mean perl.beginners.
There should be perl.intermediate as well as perl.advanced. As
30 matches
Mail list logo