comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
April 2008
motuwethfrsasuw
 123456 14
78910111213 15
14151617181920 16
21222324252627 17
282930     18
2008
 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
  Perlqt and QT-Designer         


Author: ds456
Date: Apr 4, 2008 19:38

I am trying to get PerlQT working on Debian Etch, which isn't in the
package tree. QT-Designer is, so it installs with no problem. PerlQT has
to be installed from source and it also works. That is, I can write a
perl script with QT bindings and the program runs fine.

But I can't get PerlQT noticed as a plugin by QT-Designer. When I start
QTD it should have project options for perl, but so far it only has the
usual C++ stuff.

Any QT experts on here?

Thanks
DS
no comments
  FAQ 8.15 How do I set the time and date?         


Author: PerlFAQ Server
Date: Apr 4, 2008 18:03

This is an excerpt from the latest version perlfaq8.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 .

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

8.15: How do I set the time and date?

Assuming you're running under sufficient permissions, you should be able
to set the system-wide date and time by running the date(1) program.
(There is no way to set the time and date on a per-process basis.) This
mechanism will work for Unix, MS-DOS, Windows, and NT; the VMS
equivalent is "set time".

However, if all you want to do is change your time zone, you can
probably get away with setting an environment variable:

$ENV{TZ} = "MST7MDT"; # unixish
$ENV{'SYS$TIMEZONE_DIFFERENTIAL'}="-5" # vms
system "trn comp.lang.perl.misc";

--------------------------------------------------------------------
Show full article (1.62Kb)
no comments
  322 bloqueador veicular sem mensalidades - http://bloqueadorgsm.vilabol.uol.com.br 3222167555611617474482712         


Author: bloqueador sem mensalidade
Date: Apr 4, 2008 14:49

Bloqueador veícluar com tecnologia gsm - Sem mensalidades

Tenha toda segurança para seu carro com um preço justo.

Apenas R$ 299,00 ( sem mensalidades )

http://bloqueadorgsm.vila.bol.com.br/

Compare e Compre.
Rastreador de Veículo
Rastreadores de Veículos
Rastreador GPS
Rastreadores GPS
Rastreador Ituran
Rastreadores Ituran
Rastreador Portátil
Rastreadores Portáteis.
Assistência 24 Horas

Visite agora mesmo nosso site.

http://bloqueadorgsm.vila.bol.com.br/
Show full article (0.98Kb)
no comments
  perl should be improved and perl6         


Author: jm
Date: Apr 4, 2008 14:08

perl provides good things and bad ones.

In the good thing, such as:
* it is adapted for text processing
* it is poorly typed
* it is enough powerful with unicode
* provide arrays and hash and reference (and objects)
* transparently manage any kind of numbers.
* is C interfacable
* has basic network and IPC possibilities
* pack/unpack

In the bad things, such as:
* bytes/unicode confusion
* stack overflow within bad regular expression
* memory consumption (might be an issue when energy will be more expensive?)
* insufficient typing
* some portability issue, notably with function «system».
* some $@%% issues.
* pack limitation: cannot just modify one byte.

perl6 looks like a cleanup of perl, but I am wondering:
Show full article (0.95Kb)
181 Comments
  FAQ 8.19 Why doesn't my sockets program work under System V (Solaris)? What does the error message "Protocol not supported" mean?         


Author: PerlFAQ Server
Date: Apr 4, 2008 12:03

This is an excerpt from the latest version perlfaq8.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 .

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

8.19: Why doesn't my sockets program work under System V (Solaris)? What does the error message "Protocol not supported" mean?

Some Sys-V based systems, notably Solaris 2.X, redefined some of the
standard socket constants. Since these were constant across all
architectures, they were often hardwired into perl code. The proper way
to deal with this is to "use Socket" to get the correct values.

Note that even though SunOS and Solaris are binary compatible, these
values are different. Go figure.

--------------------------------------------------------------------
Show full article (1.49Kb)
no comments
  FTP problem         


Author: slinges
Date: Apr 4, 2008 08:08

Hello,

in the past I used Net::FTP for ftp and had no problems, however if I
try to connect to a ftp url like
ftp://ftp.gimp.org/ I can't connect?

$ftp = Net::FTP->new($url, Debug=>1 [, Passive=>1]) or die 'cannot
conect';

Any ideas what the problem is?
1 Comment
  separating substitutions from an embedded perl in a ksh script         


Author: tazommers
Date: Apr 4, 2008 07:27

I have a large ksh script which had an embedded perl invocation to do
a character replace... to fix a date in a large flat file. I know the
script is inefficient, but I wanted to just improve the logic a bit
rather than have to install new scripts etc. Anyway, the file has
records that if start with the character "5" may need to have the date
replaced at position 70 in the file.

Here is the code snipet I have that works, except for one thing...

CMD="perl -p -i -n -e "'"s/^5(.{68})$EFF_DATE/5\$1|$REP_DATE/g"'"
$FILE"
eval $CMD

I don't want that "|" character, but I need something to separate the
$1 for the perl group and the $REP_DATE from the ksh. The $REP_DATE
gets replaced in ksh with the string 080407 for instance, so how does
one separate the $1 group from the string 080407?
5 Comments
  FAQ 8.23 How can I open a pipe both to and from a command?         


Author: PerlFAQ Server
Date: Apr 4, 2008 06:03

This is an excerpt from the latest version perlfaq8.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 .

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

8.23: How can I open a pipe both to and from a command?

The IPC::Open2 module (part of the standard perl distribution) is an
easy-to-use approach that internally uses pipe(), fork(), and exec() to
do the job. Make sure you read the deadlock warnings in its
documentation, though (see IPC::Open2). See "Bidirectional Communication
with Another Process" in perlipc and "Bidirectional Communication with
Yourself" in perlipc

You may also use the IPC::Open3 module (part of the standard perl
distribution), but be warned that it has a different order of arguments
from IPC::Open2 (see IPC::Open3).

--------------------------------------------------------------------
Show full article (1.60Kb)
no comments
  FAQ 8.20 How can I call my system's unique C functions from Perl?         


Author: PerlFAQ Server
Date: Apr 4, 2008 00:03

This is an excerpt from the latest version perlfaq8.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 .

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

8.20: How can I call my system's unique C functions from Perl?

In most cases, you write an external module to do it--see the answer to
"Where can I learn about linking C with Perl? [h2xs, xsubpp]". However,
if the function is a system call, and your system supports syscall(),
you can use the syscall function (documented in perlfunc).

Remember to check the modules that came with your distribution, and CPAN
as well--someone may already have written a module to do it. On Windows,
try Win32::API. On Macs, try Mac::Carbon. If no module has an interface
to the C function, you can inline a bit of C in your Perl source with
Inline::C.

--------------------------------------------------------------------
Show full article (1.64Kb)
no comments