comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
July 2006
motuwethfrsasuw
     12 26
3456789 27
10111213141516 28
17181920212223 29
24252627282930 30
31       31
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
  Problem with DateTime         


Author: madan
Date: Jul 31, 2006 23:20

hi all,
i am installing the DateTime.pm on windows using nmake....
when i tried to install it i am getting an error saying
" Cant locate lodable object for module DateTime in @INC (@INC
contains: C:/perl/lib c:/perl/site/lib .) at
C:/perl/site/lib/DateTime.pm line 47"

can anyone please tell me how to use this module...

thanks in advance
madan
1 Comment
  foreach aliasing, my variables, and visibility in sub         


Author: register_allocation
Date: Jul 31, 2006 23:12

Consider the following script:

#!/usr/bin/perl -w
use strict;

my $v = '???';
foreach $v ('foo') {
print "in loop, \$v=$v\n";
process();
}
sub process { print "in process, \$v=$v\n" }

__END__
This prints
in loop, $v=foo
in process, $v=???

I get the same result on Win32/ActiveState v5.8.8 and Redhat v5.8.0.
Interestingly, if I change '$v' from a 'my' to an 'our' variable, it
prints
in loop, $v=foo
in process, $v=foo

Is this a known thing? Bug? Feature?
Show full article (0.49Kb)
3 Comments
  Re: continous update (print)         


Author: Dan Mercer
Date: Jul 31, 2006 20:44

"J
no comments
  FAQ 4.40 What is the difference between $array[1] and @array[1]?         


Author: PerlFAQ Server
Date: Jul 31, 2006 18:03

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

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

4.40: What is the difference between $array[1] and @array[1]?

The former is a scalar value; the latter an array slice, making it a
list with one (scalar) value. You should use $ when you want a scalar
value (most of the time) and @ when you want a list with one scalar
value in it (very, very rarely; nearly never, in fact).

Sometimes it doesn't make a difference, but sometimes it does. For
example, compare:

$good[0] = `some program that outputs several lines`;

with

@bad[0] = `same program that outputs several lines`;

The "use warnings" pragma and the -w flag will warn you about these
matters.

--------------------------------------------------------------------
Show full article (1.71Kb)
no comments
  AlphaX + Perl         


Author: Peter Colapietro
Date: Jul 31, 2006 17:11

Hi I am running Mac OS X Version 10.4.7 on my MacBook Pro. I downloaded
Perl 5.8.8 and put it in /library/perl. I am using AlphaX as my texteditor
when I code for Perl. I also download Tcl/Tk Aqua Batteries as instructed.
I am going through O"reilly's Learning Perl. I created my first code:

#!/usr/bin/perl
print "Hello, world!\n";

I think I set everything up right in Config - Perl Mode Prefs. But when I
go to the Camal tab - tell perl - open this file
the Camal turns blue all around it and it just stays that way. When I hit
esc it says AESend failer: OSErr - 1711. If I try the camal tab - Run a
file and choose the Hello, world! file it says can't read "wname": no such
variable. I looked all through the wiki at
http://alphatcl.sourceforge.net/cgi-bin/wikit/24.html and the AlphaX website
but I can't seem to figure it out. Any help would be greatly appreciated.
no comments
  AlphaX + Perl         


Author: Peter Colapietro
Date: Jul 31, 2006 17:11

Hi I am running Mac OS X Version 10.4.7 on my MacBook Pro. I downloaded
Perl 5.8.8 and put it in /library/perl. I am using AlphaX as my texteditor
when I code for Perl. I also download Tcl/Tk Aqua Batteries as instructed.
I am going through O"reilly's Learning Perl. I created my first code:

#!/usr/bin/perl
print "Hello, world!\n";

I think I set everything up right in Config - Perl Mode Prefs. But when I
go to the Camal tab - tell perl - open this file
the Camal turns blue all around it and it just stays that way. When I hit
esc it says AESend failer: OSErr - 1711. If I try the camal tab - Run a
file and choose the Hello, world! file it says can't read "wname": no such
variable. I looked all through the wiki at
http://alphatcl.sourceforge.net/cgi-bin/wikit/24.html and the AlphaX website
but I can't seem to figure it out. Any help would be greatly appreciated.
1 Comment
  Re: Sharing a socket between instances         


Author: xhoster
Date: Jul 31, 2006 15:00

"Derek Basch" yahoo.com> wrote:
Show full article (2.22Kb)
no comments
  Re: perl editor         


Author: Abigail
Date: Jul 31, 2006 13:23

Josef Moellers (josef.moellers@fujitsu-siemens.com) wrote on MMMMDCCXVII
September MCMXCIII in nntp.fujitsu-siemens.com>:
@@ syracuse wrote:
@@ > Hi
@@ > anyone knows what is a good free editor to use for perl ?
@@ > Thanks
@@ > Syracuse
@@
@@ vi?

vi isn't free. Although many good vi clones are.

Abigail
--
perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\141\156\157\164".
"\150\145\162\040\120\145\162\154\040\110\141\143\153\145\162".
"\042\040\076\040\057\144\145\166\057\164\164\171";`$@`'
1 Comment
  How to download a .gif file using perl.         


Author: Qing
Date: Jul 31, 2006 12:55

I need to download lots of .gif files from a website by using perl. But
the following code doesn't work. Can anybody help?

use warnings;
use strict;
use POSIX 'strftime';
use LWP::Simple;

getstore('http://websiteMainpageURL/picshow.asp?dir=Vocab7-9&page=pg1S.gif',
'pg1S.gif');
6 Comments
  FAQ 3.21 How can I compile my Perl program into byte code or C?         


Author: PerlFAQ Server
Date: Jul 31, 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.21: How can I compile my Perl program into byte code or C?

(contributed by brian d foy)

In general, you can't do this. There are some things that may work for
your situation though. People usually ask this question because they
want to distribute their works without giving away the source code, and
most solutions trade disk space for convenience. You probably won't see
much of a speed increase either, since most solutions simply bundle a
Perl interpreter in the final product (but see "How can I make my Perl
program run faster?").

The Perl Archive Toolkit ( http://par.perl.org/ ) is Perl's analog to
Java's JAR. It's freely available and on CPAN (
http://search.cpan.org/dist/PAR/ ).
Show full article (2.64Kb)
no comments
 
1 2 3 4 5 6 7 8 9