Re: If/Elsif isn't doing what I'd expect

2002-06-29 Thread Connie Chan
> 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

RE: Check for integer

2002-06-29 Thread Timothy Johnson
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

RE: Posting Perl Questions - was Re: Advanced Users in The Beginners List

2002-06-29 Thread Timothy Johnson
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

RE: Check for integer

2002-06-29 Thread Timothy Johnson
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:

Re: Posting Perl Questions - was Re: Advanced Users in The BeginnersList

2002-06-29 Thread Tirthankar C. Patnaik
> 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

RE: If/Elsif isn't doing what I'd expect

2002-06-29 Thread Timothy Johnson
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

Else/If never mind, thanks

2002-06-29 Thread Tara Calishain
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]

If/Elsif isn't doing what I'd expect

2002-06-29 Thread Tara Calishain
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

Re: Check for integer

2002-06-29 Thread Shawn
- 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

Re: Check for integer

2002-06-29 Thread John W. Krahn
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

Check for integer

2002-06-29 Thread Donnie Jones
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

Re: Advanced Users in The Beginners List

2002-06-29 Thread Ronnie Livingston
> 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

Re: How to check if a string is a valid english word?

2002-06-29 Thread drieux
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

How to check if a string is a valid english word?

2002-06-29 Thread Ohad Ohad
_ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Posting Perl Questions - was Re: Advanced Users in The Beginners List

2002-06-29 Thread drieux
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

Re: Advanced Users in The Beginners List

2002-06-29 Thread Felix Geerinckx
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

Re: changing the permission to owner

2002-06-29 Thread John W. Krahn
[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 >

Re: Advanced Users in The Beginners List

2002-06-29 Thread Ronnie Livingston
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

Re: Advanced Users in The Beginners List

2002-06-29 Thread Felix Geerinckx
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

RE: Advanced Users in The Beginners List

2002-06-29 Thread Dan Fish
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

Re: Advanced Users in The Beginners List

2002-06-29 Thread drieux
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

Re: Perl on Linux and Windows XP

2002-06-29 Thread drieux
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

Re: Advanced Users in The Beginners List

2002-06-29 Thread Kristin A. I.
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

Re: Advanced Users in The Beginners List

2002-06-29 Thread George Thomas
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

Re: Advanced Users in The Beginners List

2002-06-29 Thread Ovid
--- 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

Perl on Linux and Windows XP

2002-06-29 Thread bss96kci
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

changing the permission to owner

2002-06-29 Thread bss96kci
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

Re: Use of uninitialized value

2002-06-29 Thread Michael Fowler
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

Use of uninitialized value

2002-06-29 Thread Dan Fish
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

Advanced Users in The Beginners List

2002-06-29 Thread Yasen Petrov
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