perldoc CPAN
[snip]
The interactive mode is entered by running
perl -MCPAN -e shell
which puts you into a readline interface. You will have the most fun if you
install Term::ReadKey and Term::ReadLine to enjoy both history and command
completion.
-Original Message-
From: Har
> my @a = map {split (/\s*=\s*/, $_, 2)} split(/\r?\n/, );
Should not \s+ match \r?\n? Apparently not.
> Sometimes it's better to do one thing at a time :-)
Correct. Simplicity is a virtue. I was just curious because I know this
could be done.
> Jenda
> P.S.: Are you sure you do not want to
>
> Here's the setup:
> I have set up a hash %categories where the key is one number and the value
> is another
> i.e. $categories('1094') = 100049-0220-14
I assume you meant (note braces and quotes):
$categories{1094} = '100049-0220-14'
otherwise the value will be 100049-0220-14 = -
While stepping through the code I wrote, I distinctly noted that the
substitution on $_ did NOT affect the array and vice versa. If anyone
insists on adding or deleting elements of an array from within a loop, you
can ... you just have to update either $_ or what $_ is aliased to, like the
original
On Sat, 2002-12-21 at 10:48, Paul Johnson wrote:
> On Fri, Dec 20, 2002 at 04:13:49PM -0500, Michael Hooten wrote:
>
> > I have added RedHat linux as a boot alternative to Win 2k. Of course,
> > the stability of linux is superb but I am not yet accustomed to
> > compil
I have added RedHat linux as a boot alternative to Win 2k. Of course,
the stability of linux is superb but I am not yet accustomed to
compiling every single thing I need that is not pre-installed.
As far as perl, I would like to permanently add /usr/local/lib/perl to
@INC without specifically havi
Is it possible to assign the output of the printf function to a scalar
variable instead of writing the output to STDOUT?
For instance, I would like the output of printf stored in $text:
$format = '| %4s | %-16s | %6s | %6s | %4s |';
@data = 'col1' .. 'col5';
$text = printf $format, @da
You can do this from Perl if you wish. What follows is VBA code that does
almost everything you want. You will have to convert it to Win32 Perl. (Hey,
I can't do everything for you.)
What is excluded is info regarding the username and password. This info is
definitely in the Outlook VBA help file.
Yellow on black is supposedly the most visible color combination to the
human eye. You can give it a try.
-Original Message-
From: Mariusz [mailto:mkubis22@;hotmail.com]
Sent: Tuesday, October 22, 2002 11:48 PM
To: perl
Subject: eyes
Not really perl related but maybe someone did the rese
Simpler and easier to read:
@combined = map { ref $_ eq 'ARRAY' ? @$_ : $_ } values %{$hash{family}};
Either dereference the array or return the scalar.
-Original Message-
From: Peter Scott [mailto:peter@;PSDT.com]
Sent: Tuesday, October 22, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re
If I understand you correctly, you are trying to process an array of an
array--each element of an array contains an anonymous array. Is this
correct?
Given the fact that you would like to pull out a specific user, you should
use a hash of a hash (a hash containing anonymous hashes).
Also, since y
11 matches
Mail list logo