comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
October 2006
motuwethfrsasuw
      1 39
2345678 40
9101112131415 41
16171819202122 42
23242526272829 43
3031      44
2006
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.lang.perl.misc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Automatic login to a web page         


Author: Jagjeet_Singh
Date: Oct 23, 2006 23:32

Hi All,

I am new to perl and do not have any idea about this language.

I need your help to solve my problem.

I have internet access on my desktop but each time my machine got
rebooted I need to log-in on
my ISP web's page by providing username,password and submit the button.

Some one told me that we can do this automatically using perl and use
of "LWP::Useragent"
and getcredential () module.

But I do not know perl, If this code is really small, can anyone post
it ..

Or if it takes time to write this then please provide me some from
where I can learn something to write this code.

I know I am fully expecting from others, But I would be really helpfull
if someone can do this for me.

like -- I use this url " http://my_isp_ip_address/indexmail.php" and
there are only 3 fields.
Show full article (0.89Kb)
9 Comments
  c like structure in Perl         


Author: adarsh.hrbr
Date: Oct 23, 2006 21:57

Hi all,

I have written a socket program whose Client is in Perl and the
Server is in C. To some extent I was successful in obtaining the data
and printing the same. But my server (UDP ) has some structures . The
data pertaining to these structures are to be communicated from the
Perl client. I thought using hash in Perl could be to solution, but
what I am sceptical about is; will I be able to typecast the same in c
to obtain the data?

Below is a structure in c which I want to type cast. Can somebody
suggest a method to define this in Perl so that I can typecaste the
same in my Server to obtain the data.

typedef struct {

uint8 Reserved;
uint32 ipaddr;
uint32 netmask;
uint16 command;

} sample;

uint - unsigned int type - 8,16 and 32 bytes - in length
5 Comments
  FAQ 3.10 Is there an IDE or Windows Perl Editor?         


Author: PerlFAQ Server
Date: Oct 23, 2006 18:03

This is an excerpt from the latest version perlfaq3.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

3.10: Is there an IDE or Windows Perl Editor?

Perl programs are just plain text, so any editor will do.

If you're on Unix, you already have an IDE--Unix itself. The UNIX
philosophy is the philosophy of several small tools that each do one
thing and do it well. It's like a carpenter's toolbox.

If you want an IDE, check the following (in alphabetical order, not
order of preference):

Eclipse
http://e-p-i-c.sf.net/

The Eclipse Perl Integration Project integrates Perl
editing/debugging with Eclipse.

Enginsite
http://www.enginsite.com/
Show full article (7.93Kb)
no comments
  Re: Error installing Apache::Request         


Author: Keith Keller
Date: Oct 23, 2006 14:44

On 2006-10-23, Adam Lawson wrote:
> I am recieving the error
>
> mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
> BEGIN failed--compilation aborted at Makefile.PL line 36.
>
> I've installed mod_perl and it says up to date
>
> I am trying to install using perl -MCPAN -e 'install Apache::Request'
>
> where do i begin to troubleshoot the problem?

Apache::Request is a mod_perl 1.0 module, apparently replaced by
Apache::RequestRec. You'll need to either port your 1.0 code to
mod_perl 2.0's API or roll back to mod_perl 1.0.

--keith
Show full article (0.75Kb)
no comments
  Error installing Apache::Request         


Author: Adam Lawson
Date: Oct 23, 2006 13:50

I am recieving the error

mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
BEGIN failed--compilation aborted at Makefile.PL line 36.

I've installed mod_perl and it says up to date

I am trying to install using perl -MCPAN -e 'install Apache::Request'

where do i begin to troubleshoot the problem?

thank you

Adam
no comments
  Can't find string terminator ...         


Author: Trudge
Date: Oct 23, 2006 12:24

This is driving me crazy. I've been programming Perl for several years,
and love the 'here' document capability. I know how it works, and use
it in almost every script I write. I've done the Google group search
and read most of the postings, but no answers to my particular problem.

My development environment is Windows 2000 Pro, running Apache (1.3.29
and 2.0.52) and ActiveState Perl 5.x. I've been developing under this
scenario for a couple of years. I use TextPad as my editor. I haven't
made any changes to anything in the environment. Most of my scripts end
up on *nix boxes, and they all work just fine there.

Lately I noticed this on my home machine when running a test script:
Can't find string terminator "EndOfText" anywhere before EOF at test.pl
line 12 (#1)
(F) Perl strings can stretch over multiple lines. This message
means
that the closing delimiter was omitted. Because bracketed quotes
count
nesting levels, the following is missing its final parenthesis:

print q(The character '(' starts a side comment.);
Show full article (2.20Kb)
24 Comments
  FAQ 3.3 Is there a Perl shell?         


Author: PerlFAQ Server
Date: Oct 23, 2006 12:03

This is an excerpt from the latest version perlfaq3.pod, which
comes with the standard Perl distribution. These postings aim to
reduce the number of repeated questions as well as allow the community
to review and update the answers. The latest version of the complete
perlfaq is at http://faq.perl.org .

--------------------------------------------------------------------

3.3: Is there a Perl shell?

The psh (Perl sh) is currently at version 1.8. The Perl Shell is a shell
that combines the interactive nature of a Unix shell with the power of
Perl. The goal is a full featured shell that behaves as expected for
normal shell activity and uses Perl syntax and functionality for
control-flow statements and other things. You can get psh at
http://sourceforge.net/projects/psh/ .

Zoidberg is a similar project and provides a shell written in perl,
configured in perl and operated in perl. It is intended as a login shell
and development environment. It can be found at http://zoidberg.sf.net/
or your local CPAN mirror.
Show full article (1.97Kb)
2 Comments
  cpu idle measurement: sar/vmstat         


Author: inetquestion
Date: Oct 23, 2006 09:22

I can't seem to get rid of the error message if sar doesn't exist in
the path. The redirection of stderr from within the backticks isn't
working via perl. Is there another way to allieviate these errors from
showing up in the console? Any suggestions on how to get cpuidle which
will work on unix or windows?

$CpuAvg=`sar -u 15 2>/dev/null | tail -1 | awk '{print \$5}'`;
if ( $CpuAvg=~/[0-9]*/ ) {
$CpuAvg=`vmstat 15 2 | tail -1 | awk '{print \$22}'`;
}
chomp($CpuAvg);

-Inet
1 Comment
  File and directory permissions         


Author: ismael
Date: Oct 23, 2006 08:02

Hi all

I have some problems to get the the permissions on windows with Perl code. I
use a simple code that run perfectly in UNIX but give me wrong information
on Windows. This is the code:
Show full article (0.73Kb)
4 Comments
  Why I no longer use Perl         


Author: strenholme.usenet
Date: Oct 23, 2006 06:40

I have been a Perl programmer for over ten years. Recently, I found a
bug in Perl which made me stop using Perl altogether.

In these examples, the accented character is a 2-byte UTF-8 sequence.

$ /usr/bin/perl --version

This is perl, v5.8.0 built for i386-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)

[Full Perl license text removed for brevity]

$ /usr/local/bin/perl --version

This is perl, v5.8.8 built for i686-linux

[Full Perl license text removed for brevity]

$ echo á | /usr/bin/perl -pe 's/á/aye/'
á
$ echo á | /usr/local/bin/perl -pe 's/á/aye/'
aye

So, is there any way to work around this problem? Nope. You might think
"use utf8" will fix this issue. It doesn't.
Show full article (2.49Kb)
11 Comments
1 2