Hithanks. problem resolvedI have added variable
called $msg1.=$previousline;RegardsSreedhar-Original
Message-From: Zeus Odin [mailto:[EMAIL PROTECTED]]Sent:
23 October 2004 22:40To: Kalkunte-Venkatachala, Sreedhar;
[EMAIL PROTECTED]Subject: RE: How to store the out put in
StringBuff
Hi,
I'm trying to fix a couple small problems in WWW::LEO.pm (accesses the Leo
German-English web server). One problem I can't solve. After switching to
my current Linux (SuSE) my leo script returns, for example:
"merkwrdig" instead of "merkwÃrdig" (umlauts do not display)
Perhaps this is becaus
Hi
I have written a program to add the strings. Now after every execution how to flush
out the out. how
$i = 0;
while()
{
$i++;
if ($i > 10)
{
If you are using 'strict', you must applies '$msg2 = $var' as 'my $msg2 =
$var',
You are highly recomment to use strict, because you won't need to take care
of
this question at all, $msg2 will destroy after the sub/loop, the entire
scope ends
anyway.
For your question :
undef $msg2 ;
or
$msg2 =
[EMAIL PROTECTED] wrote:
Hi
I have written a program to add the strings. Now after every execution how to flush
out the out. how
$i = 0;
while()
{
$i++;
if ($i > 10)
thanks. problem resolved
-Original Message-
From: Flemming Greve Skovengaard [mailto:[EMAIL PROTECTED]
Sent: 24 October 2004 12:13
To: [EMAIL PROTECTED]
Cc: Kalkunte-Venkatachala, Sreedhar
Subject: Re: How to empty the buffer
[EMAIL PROTECTED] wrote:
> Hi
>
> I have written a program
Kevin Pfeiffer wrote:
> I'm trying to fix a couple small problems in WWW::LEO.pm (accesses the Leo
> German-English web server). One problem I can't solve. After switching to
> my current Linux (SuSE) my leo script returns, for example:
>
> "merkwrdig" instead of "merkwÃrdig" (umlauts do not displ
Hello,
What does this type of error indicate, I never encountered this type of error
before.
-
Modification of a read-only value attempted at
/home/www/cgi/somescript.cgi line 151.
-
my($sparam);
foreach $spa
Mike Blezien wrote:
What does this type of error indicate, I never encountered this type of
error before.
-
Modification of a read-only value attempted at
/home/www/cgi/somescript.cgi line 151.
-
my($sparam);
This is a really cool problem. See solution below. Michael, next time post
some code please.
Thanks,
ZO
--
#!/usr/bin/perl
use warnings;
use strict;
use Data::Dumper;
my(%gap, $animal);
while () {
if (/>(\w+)/) {
$animal = $1;
} else {
while (/(-+)/) {
$gap{$animal
I have a several "hash of a hashes" that look like this (sorry if my
formating is a little off):
Human => { # HoH for human
1 => [1,32,54,67] # numbers in [ ] is a string delimited by commas
not separate hash values
2 => [14,52,74,87]
5 => [33,44,64,107]
}
Chimp => { # HoH for Chimp
1
Hello,
I’d like to write a Perl script that returns the X and Y resolution of a
given image file. Does anyone know of a module that might support this
function? Ideally it would support a wide variety of image file
formats.
Thanks
Tom
---
Outgoing mail is certified Virus Free.
Checked by AVG
From: [EMAIL PROTECTED] <> wrote:
: Hi
:
: I have written a program to add the strings. Now after every
: execution how to flush out the out. how
: $i = 0;
: while()
: {
: $i++;
: if ($i > 10)
:
Tom Proctor wrote:
Hello,
Hello,
I’d like to write a Perl script that returns the X and Y resolution of a
given image file. Does anyone know of a module that might support this
function? Ideally it would support a wide variety of image file
formats.
Try:
http://search.cpan.org/
Imager
Image::M
Michael S. Robeson II wrote:
Any ideas or suggestions?
Yes: Make it easier to help you by posting a small but complete *Perl*
program that illustrates the problem.
Speak more Perl and less English! :)
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail:
On Sun, 24 Oct 2004, JupiterHost.Net wrote:
Tom Proctor wrote:
Id like to write a Perl script that returns the X and Y resolution
of a given image file. Does anyone know of a module that might
support this function? Ideally it would support a wide variety of
image file formats.
Try:
http://searc
Hi *,
I want to install the Spreadsheet-WriteExcel-2.11 with the prerequisites
Parse::RecDescent and File::Temp.
Version:
This is perl, v5.8.0 built for i386-linux-thread-multi
@INC:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i
Stefan Hans wrote:
What I have done:
# cp ./lib/Parse/RecDescent.pm /usr/lib/perl5/5.8.0/
My problem:
Warning: prerequisite Parse::RecDescent 0 not found.
Why can perl not find this RecDescent.pm under /usr/lib/perl5/5.8.0/ ?
Because it does not look for it there, but it expects to find it in for
On Sun, 24 Oct 2004, Stefan Hans wrote:
I want to install the Spreadsheet-WriteExcel-2.11 with the
prerequisites Parse::RecDescent and File::Temp.
[...]
This is my first time working with perl.
Then save yourself a lot of time & aggrivation and learn to use the CPAN
shell tool.
You invoke it by
Can somebody help me how to remove the trailing zero from an ip address
$ip_add = "010.200.020.000";
The output should be "10.200.20.0";
I''ve been trying many regex techniques but still unsuccessful.
Thanks
Azmi
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
On Mon, 25 Oct 2004, Khairul Azmi wrote:
> Can somebody help me how to remove the trailing zero from an ip address
>
> $ip_add = "010.200.020.000";
>
> The output should be "10.200.20.0";
> I''ve been trying many regex techniques but still unsuccessful.
It's probably possible to do this other
On Sun, 24 Oct 2004, Bernard Kenik wrote:
> The part that puzzled me was [^/] .. so I experimented a little. I asked
> myself how I would extract the path portion.
Wasn't the requirement to *throw away* the path portion, not save it?
> The final answer I came up with was: ( my $path = $file ) =
Hi,
Could anyone help me in this? I need it a bit urgent.
Thanks and Regards
Suresh
-Original Message-
From: Suresh Pasupula (WT01 - EMBEDDED & PRODUCT ENGINEERING SOLUTIONS)
Sent: Saturday, October 23, 2004 12:25 PM
To: [EMAIL PROTECTED]
Subject: [Printer Ins
Hi all..i have wrote a script that import from several text file into mysql..
===
#!/usr/local/bin/perl
use CGI ':standard';
use strict;
use warnings;
use DBI;
#my $dbh = DBI->connect("dbi:mysql:ayam","root",telekom);
#Pre
Hi all..i have wrote a script that import from several text file into mysql..
===
#!/usr/local/bin/perl
use CGI ':standard';
use strict;
use warnings;
use DBI;
#my $dbh = DBI->connect("dbi:mysql:ayam","root",telekom);
#Pre
On Mon, 25 Oct 2004 [EMAIL PROTECTED] wrote:
> Could anyone help me in this? I need it a bit urgent.
Your urgency is not, sadly, shared by strangers on the internet. Sorry.
If you need an answer that badly, maybe you should also be looking at
the Windows-specific Perl lists.
perl-win32-use
Why are you sending two copies of your mail to the list?
Please stop doing that -- it's a great way to get ignored.
On Mon, 25 Oct 2004, Roime bin Puniran wrote:
> Hi all..i have wrote a script that import from several text file into mysql..
>
> =
hello
i ve found a perl script to calculate the sum of the permissions my
principal files
the line which is writing in my file is
foreach $name ( sort @files) {
($uid,$gid) = (stat $nane)[4,5];
ici la ligne $stat = sprintf "%Oo",
(stat_)[2];//
and whe
deny <[EMAIL PROTECTED]> wrote:
: i ve found a perl script to calculate the sum of the
: permissions my principal files
:
: the line which is writing in my file is
:
: foreach $name ( sort @files) {
:($uid,$gid) = (stat $nane)[4,5];
:ici la ligne $stat = sprintf
29 matches
Mail list logo