UTF-8 problem with LWP

2010-01-13 Thread Christoph Friedrich
Hello there, I try to fetch the content of the page http://www.pluendermeister.de/sec/300300/?curServer=Aegwynn&gname=&submit=Daten+absenden with LWP and try to parse it. But when I print the result of my parsing it is not readable. Here is the result I get: "teh D\x{f6}nertiere",

scp status

2010-01-13 Thread Noah
Hi there, I want to initiate a series of scp commands from the shell. Is there anyway to view the scp status bar when running the shell commands from a perl script? if so, how? Cheers, Noah -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginne

Re: System question

2010-01-13 Thread Jim Gibson
On 1/13/10 Wed Jan 13, 2010 3:28 PM, "ANJAN PURKAYASTHA" scribbled: > Hi, > Suppose I run an application from within a perl script, with system (eg > system ("myfavprogram input_file out_file")). > Is there a way to let the script know that the program has finished running > and that I can mov

System question

2010-01-13 Thread ANJAN PURKAYASTHA
Hi, Suppose I run an application from within a perl script, with system (eg system ("myfavprogram input_file out_file")). Is there a way to let the script know that the program has finished running and that I can move on to the next step in the perl script? TIA, Anjan --

Re: Queries - Newbie

2010-01-13 Thread Uri Guttman
> "d" == dolphin writes: d> Hi, d> I want to use perl and print time before and after sleep but not d> successful, can anyone advice? d> my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime d> time; those variables contain the breakdown of time at the moment. d>

Re: Queries - Newbie

2010-01-13 Thread John W. Krahn
dolphin wrote: Hi, Hello, I want to use perl and print time before and after sleep but not successful, can anyone advice? #!/usr/bin/perl my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime time; my $timenow="$hour$min$sec"; print "It is now $timenow\n"; sleep 15; my $timelat

About the multiple lines problem

2010-01-13 Thread Majian
Hi,all There is a problem confused me for a long time . It is: cat test.txt 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, Then I want to this result : 1 2 3 6 9 4 7 10 5 8 11 I don't know how to print the multiple lines with th

Queries - Newbie

2010-01-13 Thread dolphin
Hi, I want to use perl and print time before and after sleep but not successful, can anyone advice? #!/usr/bin/perl my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime time; my $timenow="$hour$min$sec"; print "It is now $timenow\n"; sleep 15; my $timelater="$hour$min$sec"; print "

RE: About the Perl multiple lines problem

2010-01-13 Thread Grove, Michael
At 6:47 PM +0800 1/13/10, Majian wrote: >Hi,all > >There is a problem confused me for a long time . >It is: > >cat test.txt > >1, >2, >3, >4, >5, >6, >7, >8, >9, >10, >11, > > > >Then I want to this result : >1 2 3 6 9 >4 7 10 >

Re: About the Perl multiple lines problem

2010-01-13 Thread Jim Gibson
At 6:47 PM +0800 1/13/10, Majian wrote: Hi,all There is a problem confused me for a long time . It is: cat test.txt 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, Then I want to this result : 1 2 3 6 9 4 7 10 5 8 11 I don't know

About the Perl multiple lines problem

2010-01-13 Thread Majian
Hi,all There is a problem confused me for a long time . It is: cat test.txt 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, Then I want to this result : 1 2 3 6 9 4 7 10 5 8 11 I don't know how to print the result use the Perl scrip