Retrieving Cookies does not return all domain values

2009-02-25 Thread Thomas Hilbig
I am in the process of changing my cookies (stored on my users’ browsers) so they can be shared across multiple servers under my domain.  So, instead of writing cookies with domain ‘www.mydomain.com’, I am writing them to ‘.mydomain.com’ so they can be read by www.mydomain.com,

2 files, 1 package, shared constants

2009-02-25 Thread Stanisław T. Findeisen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello there My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a common file with constants and shared routines. The question is: what is the most standard way to export

Simplify a script which copies files

2009-02-25 Thread Lauri Nikkinen
Hi, I wrote a script which copies files in directory to an another directory based on user input. Any suggestions to simplify or shorten this? I'm using Win XP. -L code - #!/bin/perl use warnings; use strict; use File::Copy; my $dire; my

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
Octavian Râsnita wrote: From: Gunnar Hjalmarsson nore...@gunnar.cc Well, if I understand it correctly, Mail::Builder::Simple *enforces* the use of UTF-8, which is something I don't like. Well, I like that, because it is more simple to send special chars from more languages, but without

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: snip Funny thing is that in two.pl MyPackage-MY_FIRST_CONSTANT works, but neither of these: print '' . MY_FIRST_CONSTANT . \n; print '' . MyPackage::MY_FIRST_CONSTANT . \n; Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, \n; print

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Stanisław T. Findeisen
Gunnar Hjalmarsson wrote: Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, \n; print MyPackage::MY_FIRST_CONSTANT, \n; Ee... you mean . instead of , right? This: print MY_FIRST_CONSTANT . \n; print MyPackage::MY_FIRST_CONSTANT . \n; yields this output:

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: Gunnar Hjalmarsson wrote: Concatenation seems like a bad idea. Try: print MY_FIRST_CONSTANT, \n; print MyPackage::MY_FIRST_CONSTANT, \n; Ee... you mean . instead of , right? No, I mean ,. You can print() a list. -- Gunnar Hjalmarsson Email:

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Octavian Râsnita
From: Gunnar Hjalmarsson nore...@gunnar.cc I have tried to use the same code but I've changed the charset to UTF-8 (also tried utf8) and the subject to: subject = 'Östra Vägen astâîASTÂÎ', If you change the charset to UTF-8, you'd better also pass UTF-8 encoded strings to the module.

Re: 2 files, 1 package, shared constants

2009-02-25 Thread Gunnar Hjalmarsson
Stanisław T. Findeisen wrote: My application consists of several files. Some of them are to be run as CGI scripts, the others from command line. There is also a common file with constants and shared routines. First: Please disregard my theory about concatenation. Concatenation is ok, which is

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
Octavian Râsnita wrote: From: Gunnar Hjalmarsson nore...@gunnar.cc Octavian Râsnita wrote: I have tried to use the same code but I've changed the charset to UTF-8 (also tried utf8) and the subject to: subject = 'Östra Vägen astâîASTÂÎ', If you change the charset to UTF-8, you'd better

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
Gunnar Hjalmarsson wrote: Octavian Râsnita wrote: If I used it in a UTF-8 encoded perl program and was also using use utf8; in it, I expected that it understand that it should be encoded to UTF-8. I don't think that's what the utf8 pragma is about. (But, as I'm sure you understand, my

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
[ new attempt - encoding is tricky... ] Gunnar Hjalmarsson wrote: Octavian Râsnita wrote: If I used it in a UTF-8 encoded perl program and was also using use utf8; in it, I expected that it understand that it should be encoded to UTF-8. I don't think that's what the utf8 pragma is about.

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Octavian Râşniţă
From: Gunnar Hjalmarsson nore...@gunnar.cc [ new attempt - encoding is tricky... ] Gunnar Hjalmarsson wrote: Octavian Râsnita wrote: If I used it in a UTF-8 encoded perl program and was also using use utf8; in it, I expected that it understand that it should be encoded to UTF-8. I don't

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
Octavian Râs,nit,a( wrote: From: Gunnar Hjalmarsson nore...@gunnar.cc This is an example program where use utf8; makes a difference: use utf8; $igÃ¥r = '2009-02-24'; print Yesterday: $igÃ¥r\n; (igÃ¥r is Swedish for yesterday) Well I have tried the scripts from the 2 messages,

How to install Win32 module...

2009-02-25 Thread Steve Pittman
I downloaded and unzipped the TAR file...how do I install it...directions say copy into lib which didn't work thanks in advance -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

replace text in file

2009-02-25 Thread lemba
Hi All, I'm trying to replace some text in file. Below is my script. It basically makes a copy of line with changes. How can I replace pattern in the uxix sed way? use strict; use warnings; use Cwd; use Win32; use File::Path; use File::Find; use File::Basename; @ARGV = Win32::GetCwd()

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Dennis G. Wicks
We now return you to the original problem! I got the sample that Gunnar posted using Mail::Sender to work after I played around with cpan and got it installed. Now I have discovered a new problem. The SMTP server does not respond on the first try all the time. (I think this is a local

Re: replace text in file

2009-02-25 Thread Jim Gibson
On 2/25/09 Wed Feb 25, 2009 5:02 PM, lemba le...@sbcglobal.net scribbled: Hi All, I'm trying to replace some text in file. Below is my script. It basically makes a copy of line with changes. How can I replace pattern in the uxix sed way? I don't use sed, but you can use Perl one-liners

Word too long specific to System/memory concern ?

2009-02-25 Thread Anisha Parveen
Hi, I have a perl script file with a statement as this $path = LD_LIBRARY_HOME=$HOME/bin; If i just change this to $path = LD_LIBRARY_HOME=$HOME/bin*:/lib:/usr/lib* ; I start getting Word too long error. On deep analysis and lots of testing , i find that this happens only on a specific

Re: Word too long specific to System/memory concern ?

2009-02-25 Thread Bob goolsby
word too long is a Shell error, are you using back-ticks or system() to invoke an external command? That would spawn a new process and, it you have modified the PATH to contain more that the system-implementation maximum length. B On Wed, Feb 25, 2009 at 10:16 PM, Anisha Parveen

Re: Sending email w/Mail::Builder::Simple -- need help

2009-02-25 Thread Gunnar Hjalmarsson
Dennis G. Wicks wrote: We now return you to the original problem! What's that about? Oh, yeah... ;-) I got the sample that Gunnar posted using Mail::Sender to work after I played around with cpan and got it installed. Now I have discovered a new problem. The SMTP server does not respond on