RE: How to store the out put in StringBuffer

2004-10-24 Thread Sreedhar . Kalkunte-Venkatachala
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

charset problem using HTTP::Request on command line

2004-10-24 Thread Kevin Pfeiffer
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

How to empty the buffer

2004-10-24 Thread Sreedhar . Kalkunte-Venkatachala
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) {

Re: How to empty the buffer

2004-10-24 Thread Bee
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 =

Re: How to empty the buffer

2004-10-24 Thread Flemming Greve Skovengaard
[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)

RE: How to empty the buffer

2004-10-24 Thread Sreedhar . Kalkunte-Venkatachala
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

Re: charset problem using HTTP::Request on command line

2004-10-24 Thread Kevin Pfeiffer
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

Strange Error

2004-10-24 Thread Mike Blezien
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

Re: Strange Error

2004-10-24 Thread Gunnar Hjalmarsson
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);

Re: counting gaps in sequence data

2004-10-24 Thread Zeus Odin
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

comparing data between hashes

2004-10-24 Thread Michael S. Robeson II
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

querying image resolutions with perl

2004-10-24 Thread Tom Proctor
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

RE: How to empty the buffer

2004-10-24 Thread Charles K. Clarkson
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) :

Re: querying image resolutions with perl

2004-10-24 Thread JupiterHost.Net
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

Re: comparing data between hashes

2004-10-24 Thread Gunnar Hjalmarsson
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:

Re: querying image resolutions with perl

2004-10-24 Thread Chris Devers
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

Module Installation Question

2004-10-24 Thread Stefan Hans
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

Re: Module Installation Question

2004-10-24 Thread Gunnar Hjalmarsson
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

Re: Module Installation Question

2004-10-24 Thread Chris Devers
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

How to remove trailing zero

2004-10-24 Thread Khairul Azmi
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

Re: How to remove trailing zero

2004-10-24 Thread Chris Devers
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

RE: how the print the first 7 letter of file name

2004-10-24 Thread Chris Devers
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 ) =

RE: [Printer Installation]: Problem withy X-64 and IA-64

2004-10-24 Thread suresh.pasupula
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

RE: cat *.txt > .txt...........roy

2004-10-24 Thread Roime bin Puniran
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

cat *.txt > .txt...........roy

2004-10-24 Thread Roime bin Puniran
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

RE: [Printer Installation]: Problem withy X-64 and IA-64

2004-10-24 Thread Chris Devers
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

Re: cat *.txt > .txt...........roy

2004-10-24 Thread Chris Devers
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.. > > =

problem printf

2004-10-24 Thread deny
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

RE: problem printf

2004-10-24 Thread Charles K. Clarkson
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