comp.lang.perl.misc
  Home FAQ Contact Sign in
comp.lang.perl.misc only
 
Advanced search
September 2006
motuwethfrsasuw
    123 35
45678910 36
11121314151617 37
18192021222324 38
252627282930  39
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
  I can't think of a thing to say         


Author:
Date: Sep 30, 2006 23:07

no comments
  FAQ 3.30 What's MakeMaker?         


Author: PerlFAQ Server
Date: Sep 30, 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.30: What's MakeMaker?

(contributed by brian d foy)

The "ExtUtils::MakeMaker" module, better known simply as "MakeMaker",
turns a Perl script, typically called "Makefile.PL", into a Makefile.
The unix tool "make" uses this file to manage dependencies and actions
to process and install a Perl distribution.

--------------------------------------------------------------------
Show full article (1.37Kb)
no comments
  [xchat] fetching own text - $_[0] not a string?         


Author: Vedran
Date: Sep 30, 2006 16:43

Hello,
I am writing an xchat script, here is the part of code making me problems:

IRC::add_command_handler("", "enc");
...
sub enc {
my $target = IRC::get_info(2);
my $input = $_[0];

# print "-$input-\n"; prints for eg. -bla-

but:
my $ciphertext = $cipher->encrypt($$input);
won't work

but if I write:
my $input = "bla";
my $ciphertext = $cipher->encrypt($$input);
then It works.

What is the difference betweek $input = $_[0] and $input = "bla" ?
Aren't those bot scalars?

How can I do the $_[0] to be the same type of other string?

Thanks Smile
Show full article (0.64Kb)
10 Comments
  Re: Computer Language Popularity Trend         


Author: Arne Vajhøj
Date: Sep 30, 2006 13:04

Danno wrote:
> Xah Lee wrote:
>> This page gives a visual report of computer languages's popularity, as
>> indicated by their traffic level in newsgroups. This is not a
>> comprehensive or fair survey, but does give some indications of
>> popularity trends.
>>
>> http://xahlee.org/lang_traf/index.html
>
> Wow, java is a low level industrial language? ;)

Compared to Python, Ruby etc. - yes.

Arne
no comments
  FAQ 4.69 How can I use a reference as a hash key?         


Author: PerlFAQ Server
Date: Sep 30, 2006 12: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.69: How can I use a reference as a hash key?

(contributed by brian d foy)

Hash keys are strings, so you can't really use a reference as the key.
When you try to do that, perl turns the reference into its stringified
form (for instance, "HASH(0xDEADBEEF)"). From there you can't get back
the reference from the stringified form, at least without doing some
extra work on your own. Also remember that hash keys must be unique, but
two different variables can store the same reference (and those
variables can change later).

The "Tie::RefHash" module, which is distributed with perl, might be what
you want. It handles that extra work.

--------------------------------------------------------------------
Show full article (1.72Kb)
no comments
  FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org?         


Author: PerlFAQ Server
Date: Sep 30, 2006 06:03

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

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

2.17: What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org?

Perl.com at http://www.perl.com/ is part of the O'Reilly Network, a
subsidiary of O'Reilly Media.

The Perl Foundation is an advocacy organization for the Perl language
which maintains the web site http://www.perl.org/ as a general advocacy
site for the Perl language. It uses the domain to provide general
support services to the Perl community, including the hosting of mailing
lists, web sites, and other services. The web site http://www.perl.org/
is a general advocacy site for the Perl language, and there are many
other sub-domains for special topics, such as
Show full article (2.33Kb)
no comments
  FAQ 4.12 How do I find the day or week of the year?         


Author: PerlFAQ Server
Date: Sep 30, 2006 00: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.12: How do I find the day or week of the year?

The localtime function returns the day of the year. Without an argument
localtime uses the current time.

$day_of_year = (localtime)[7];

The "POSIX" module can also format a date as the day of the year or week
of the year.

use POSIX qw/strftime/;
my $day_of_year = strftime "%%j", localtime;
my $week_of_year = strftime "%%W", localtime;

To get the day of year for any date, use "POSIX"'s "mktime" to get a
time in epoch seconds for the argument to localtime.
Show full article (2.01Kb)
no comments
  need help finding a pop up example         


Author: ToddAndMargo
Date: Sep 29, 2006 21:34

Hi All,

I am a bit new to Perl. (My experience is with Modula2
and Linux bash script.)

I need to write a win32 Perl program that will 1) pop up
a windows with a message to the user, 2) only appear in the
task bar when it pops up, and 3) blink (read: annoy the user)
its block on the task bar until the user dismisses the
message.

Can some kind person point me to an appropriate
example? (I love all the examples, but am a bit
overwhelmed by the quantity of them!)

Many thanks,
--T
1 Comment
  need syntax help         


Author: ToddAndMargo
Date: Sep 29, 2006 21:30

Hi All,

I was over at
http://search.cpan.org/~fkolodny/Net-Rexec-0.12/Rexec.pm
looking at the rexec example. (I have rexec working on a server I want
to read the tape drive status off of.)

Okay, I know, just try it an see, but I will not be out to the
location for a while and I was hoping someone would put
me out of my ignorance

Syntax question: how do I enter "mt -f /dev/st0 status; grep -i
online"
into the "command" field below? Do I put quotes around it?
How do I separate my command from the "userid" and
"password"? I am concerned that the line below will
confuse "-f" for the userid, etc..

use Net::Rexec 'rexec';
($rc, @output) = rexec(host, command, [userid, [password]]);

Many thanks,
--T
27 Comments
  FAQ 3.24 Why don't Perl one-liners work on my DOS/Mac/VMS system?         


Author: PerlFAQ Server
Date: Sep 29, 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.24: Why don't Perl one-liners work on my DOS/Mac/VMS system?

The problem is usually that the command interpreters on those systems
have rather different ideas about quoting than the Unix shells under
which the one-liners were created. On some systems, you may have to
change single-quotes to double ones, which you must *NOT* do on Unix or
Plan9 systems. You might also have to change a single %% to a %%%%.

For example:

# Unix
perl -e 'print "Hello world\n"'

# DOS, etc.
perl -e "print \"Hello world\n\""
Show full article (2.68Kb)
3 Comments
1 2 3 4 5 6 7 8 9