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,
-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
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
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
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
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:
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:
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.
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
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
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
[ 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.
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
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,
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/
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()
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
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
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
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
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
21 matches
Mail list logo