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
"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
wrote:
>
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
specifi
On 2/25/09 Wed Feb 25, 2009 5:02 PM, "lemba"
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" to emulate s
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 proble
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() unless
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/
Octavian Râs,nit,a( wrote:
From: "Gunnar Hjalmarsson"
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, but I must
From: "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 wha
[ 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. (
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 UTF
Octavian Râsnita wrote:
From: "Gunnar Hjalmarsson"
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 also pass UTF-8
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 i
From: "Gunnar Hjalmarsson"
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. That's not a UTF-8
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: h
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:
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
Octavian Râsnita wrote:
From: "Gunnar Hjalmarsson"
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 needing to know nor t
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 $destinatio
-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
20 matches
Mail list logo