Determine number or word

2001-10-11 Thread Rene Verharen
Hi, Is there a simple way to determine if a variable contains a number or (one or more) alpha-nummeric characters ? Vriendelijke groet, Rene Verharen [EMAIL PROTECTED] http://www.verharen.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Calculate date 30 days ahead

2001-12-23 Thread Rene Verharen
Hi, I need to calculate the date exactly 30 days ahead. Can I do this from localtime or do I need a certain module ? Thanks for your help. Vriendelijke groet, Rene Verharen [EMAIL PROTECTED] http://www.verharen.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

mkdir in cgi-script

2002-01-19 Thread Rene Verharen
mkdir "$homeDir/directory/somedir", 0755"; mkdir "$homeDir/directory/somedir/someotherdir", 0755"; mkdir "$homeDir/directory/somedir/someotherdir/yetanotherdir", 0755"; Although this works I think I'm using to much code. Is there a more

search and replace

2002-01-19 Thread Rene Verharen
t;; $rearch = "(with brackets)"; $replace = "without brackets"; $text =~ s/$search/$replace/; print $text; If I run this example it prints : This is a text (without brackets)... Where did I go wrong ? Kind regards, Rene Verharen Please DO NOT reply to me per

Re: mkdir in cgi-script

2002-01-20 Thread Rene Verharen
"; mkdir $string, 0755; } This seems to work for me but comments are welcome. Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy from the list. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Change first character of a string into Caps

2002-02-09 Thread Rene Verharen
? Thanks. Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy from the list. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Regex question

2002-03-10 Thread Rene Verharen
{2,4}/) >>{ >> # error stuff here >>} > > >have you considered using email::valid? > >http://search.cpan.org/search?dist=Email-Valid Is there also a module or another way to test the existence of an email address ? Kind regards, Rene Verharen Please DO NO

Delete preceding zeroes

2002-04-28 Thread Rene Verharen
Hi, Where can I find some information on how to convert a alphanumeric string to a number ? My problem : $waarde = "0073"; # The value in $waarde comes from a file needs to be converted to $waarde = 73; Pleas point me in the right direction. Kind regards, Ren

Re: Delete preceding zeroes

2002-04-29 Thread Rene Verharen
At 28-4-2002 09:54 -0400, Marty Landman wrote: >Rene, here's a little pgm and output to give you an example : > >$waarde = "0073"; >$waarde += 0; >print "waarde eq $waarde\n"; Thank you Marty for your help. This is what I finally made of it : print

Re: CGI scripts permissions

2002-12-24 Thread Rene Verharen
"; >> End of index.cgi Any comments are welcome. Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy from the list. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

flock and Fcntl

2003-01-09 Thread Rene Verharen
this platform" error when testing my scripts local on a W98 platform ? I'm using ActiveState Perl version 5.005_03 Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy from the list. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: using an AND operator

2003-01-11 Thread Rene Verharen
At 11-01-2003 09:48 -0500, Susan Aurand wrote: Is there an AND operator in perl? For example; if ($SRF=1 and $SRL=1) {print"YES";) print "YES"if ($SRF=1 && $SRL=1); Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy f

ISP won't install Perl modules

2003-01-17 Thread Rene Verharen
Hi all, My ISP won't install some Perl modules I want to use (Email::Valid and Mail::Address). Is there a way to install these modules in some directory I have access to so I'll be able to use them ? Kind regards, Rene Verharen Please DO NOT reply to me personally. I'

Solved: ISP won't install Perl modules

2003-01-17 Thread Rene Verharen
and solved the problem this way : push(@INC, "/path/to/my/modules"); Thanks for your response. Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy from the list. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Crypted script ?

2003-01-17 Thread Rene Verharen
text in it. Can someone tell me more about how this is done or point me at a doc I should read ? Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy from the list. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Why doesn't this work anymore ?

2003-01-26 Thread Rene Verharen
edomain.tld/somepage.html";; $UserAgent->agent('Mozilla 4.7'); $response = $UserAgent->request($request); @content = split (/\n/, $response->content); Any help ? Kind regards, Rene Verharen Please DO NOT reply to me personally. I'll get my copy from t

Test if first character of a variable is a 0 (zero)

2001-10-18 Thread Rene Verharen
should I use ? Vriendelijke groet, Rene Verharen [EMAIL PROTECTED] http://www.verharen.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with soft line break

2001-11-01 Thread Rene Verharen
send someone the script : Is this a CGI-issue or do i need to look at my MTA (Postfix) to solve this little problem ? Vriendelijke groet, Rene Verharen [EMAIL PROTECTED] http://www.verharen.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL