It depends partly on what distribution of Perl you are using. If you are on a Win32
system, definitely check with PPM to see if you can install it automatically. You
will save youself a lot of headache.
-Original Message-
From: Dan Anderson [mailto:[EMAIL PROTECTED]
Sent: Friday, Octo
Harry Putnam wrote:
[EMAIL PROTECTED] writes:
Hi,
I'm trying to find my IP address from within Perl for eth0 and ppp0.
Currently I run a regex on the output of ifconfig to extract his data -
but, I'd like to do this from within Perl and it strikes me that this
should be possible.
HELP! ANYBODY!
[EMAIL PROTECTED] wrote:
Wiggins,
That works ok but still doesn't sort my keys correctly
Even if I use sort like so doesn't work. Like what I
have below:
foreach my $OS (sort keys(%commands)) {
while (my ($key, $command) = each (%{$commands{$OS}})) {
print "$key running $comm
> When perl wants to connect to databases (any database) perl uses a database
> driver. This db driver is called DBI. Each DBI has an interface to each
> vendors database called the DBD modules. So depending on the kind of database
> you are planning to use, you will HAVE to install
>
> 1) DBI
>
Hi Dan,
There will probably be a README file in the package that will explain
how to install them.
As a general rule though, the following almost always installs them:
* uncompress and untar your file then do:
% perl Makefile.PL
% make
% make test
% make install
Or if you have the CPAN modul
[EMAIL PROTECTED] writes:
>>> Hi,
>>>I'm trying to find my IP address from within Perl for eth0 and ppp0.
>>> Currently I run a regex on the output of ifconfig to extract his data -
>>> but, I'd like to do this from within Perl and it strikes me that this
>>> should be possible.
>>>
>>> HELP!
If I download DBD modules for DBI off CPAN, what is the directory I
should put them in so they can be used by all perl scripts on the
system?
Thanks in advance,
-Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Wiggins,
That works ok but still doesn't sort my keys correctly
Even if I use sort like so doesn't work. Like what I
have below:
foreach my $OS (sort keys(%commands)) {
while (my ($key, $command) = each (%{$commands{$OS}})) {
print "$key running $command\n";
}
}
Just won
[EMAIL PROTECTED] wrote:
Wiggins,
I tried that suggestion you have and got the
The following message:
C:\Perl\Accenture>perl test2.pl
Can't use string ("sol") as a HASH ref while "strict refs" in use at
test2.pl line 59.
That is using your suggestion:
foreach my $OS (keys(%commands)) {
while
Hi,
When perl wants to connect to databases (any database) perl uses a database driver.
This db driver is called DBI. Each DBI has an interface to each vendors database
called the DBD modules. So depending on the kind of database you are planning to use,
you will HAVE to install
1) DBI
2) DB
zentara <[EMAIL PROTECTED]> writes:
> You could also check out: http://herrmanns-stern.de/
> for a couple of image viewer utilities written in perltk.
>
> Here is some code which will give you a good outline for
> forking and execing which will let you kill the stored pid.
> Working your image vie
Wiggins,
I think I almost have it but maybe someone can unstrangle my hair on this
Last piece.
Here is what I have now:
foreach $items (sort %commands) {
foreach $CMD (sort keys %{$commands{$items}}){
print "Command: $CMD \n";
$results= ($commands{$items}{$CMD})[0];
print "$r
Wiggins,
I tried that suggestion you have and got the
The following message:
C:\Perl\Accenture>perl test2.pl
Can't use string ("sol") as a HASH ref while "strict refs" in use at
test2.pl line 59.
That is using your suggestion:
foreach my $OS (keys(%commands)) {
while (my ($key, $command) =
Wiggins,
Thanks I'll try your suggestion and let you know
What works.
Phillip
-Original Message-
From: Wiggins d Anconia [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 12:33 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Hash Issue
>
> Hi,
>
>
>
> I'
From: Johnny Ingersoll <[EMAIL PROTECTED]>
> my first "serious" perl module is simple parse of IBM MVS JCL. In the
> following routine, I'm looking for program name in a parm line that
> may be of the form: PARM='BMP,WEAAC202,WEAAC20280,,' (in
> this instance it's supposed to go after t
There is a much simpler way of getting the path and the filename -
use File::Basename;
my ($rfile, $dirname) = fileparse($roriginal_file); # split up the file name
works very well.
randy
"Brian Gerard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> And the clouds parted, and Kev
my first "serious" perl module is simple parse of IBM MVS JCL. In the
following routine, I'm looking for program name in a parm line that may be
of the form:
PARM='BMP,WEAAC202,WEAAC20280,,'
(in this instance it's supposed to go after the first 'WEAAC202')
#!/usr/bin/perl
use strict;
>
> Hi,
>
>
>
> I've been playing around with the Tie::IxHash module.
>
>
>
> Here is my part of my code:
>
It appears to be lacking, use strict and use warnings these will help
you track down on your own your errors
>
>
> tie my %commands, "Tie::IxHash";
>
>
>
> %comman
Try with $q->param("qty$i");
thereis no variable interpolation in '' but when u use "" variable interpolation
works.
regards,
KM
--
On Fri, Oct 31, 2003 at 01:01:49PM -0500, radhika sambamurti wrote:
> Hi,
> I am trying to do this:
Hi,
I've been playing around with the Tie::IxHash module.
Here is my part of my code:
tie my %commands, "Tie::IxHash";
%commands = ('sol'=>{'hostname' =>'uname -n',
'os' =>'unamed -s',
'over' =>'un
> A good resource was
> perldoc DBD::mysql and perldoc DBI
I apparently don't have those modules...
1% perldoc DBD::mysql
No documentation found for "DBD::mysql".
2% perldoc DBI
No documentation found for "DBI".
I've never installed a module before, does that signal I'm in over my head?
Where
A good resource was
perldoc DBD::mysql and perldoc DBI
On Thu, 30 Oct 2003 23:48:30 -0700
Bryan Harris <[EMAIL PROTECTED]> wrote:
>
>
> I've been enjoying perl for almost 2 years now, and I think I'm ready to
> step into interacting with a database. (big step!)
>
> I have mysql, and I hav
And the clouds parted, and Kevin Pfeiffer said...
> >
> > Here's a line that will give you exactly that.
> > ($PROGNAME = $0) =~ s|(\.?\.?(/[^/]+)*/)?([^/]+)|$3|;
>
> I have two questions...
>
> I came up with this earlier today:
> my ($program) = $0 =~ /([^\/]+)$/;
>
> Doesn't it do the same?
--On Friday, October 31, 2003 9:24 AM -0800 Gregg O'Donnell
<[EMAIL PROTECTED]> wrote:
I'm using MIME::Lite to send a wide email, which is formatted as
HTML (could be formatted as text if needed, or as an attachment).
How do I control the printing to orient the email to an 11 X 8 1/2
(landscape/h
Please remove me from the list
-Original Message-
From: Gregg O'Donnell [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 9:25 AM
To: [EMAIL PROTECTED]
Subject: printing: landscape instead of portrait
I'm using MIME::Lite to send a wide email, which is formatted as HTML (could be
I'm using MIME::Lite to send a wide email, which is formatted as HTML (could be
formatted as text if needed, or as an attachment). How do I control the printing to
orient the email to an 11 X 8 1/2 (landscape/horizontal) style instead of 8 1/2 X 11
(portrait/vertical)?
Joshua Scott wrote:
>
> How can I split the data in a line by a single whitespace but also keep
> portions between quotes together? Here is an example of a line of data I'm
> trying to parse:
>
> id=firewall time="2003-10-30 04:15:01" fw=66.74.67.229 pri=5 c=256 m=38
> msg="ICMP packet dropped" n=
>
> "Wiggins D Anconia" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
> > > Hi,
> > I have found in general the
> > module that is chosen is based more on the format of the config file,
>
>
> YAML is a rising star as formats go, I believe.
>
>
>
>
> > > where is hostname?
From: "henq" <@onion.perl.org henq _ replace 0 by o <[EMAIL PROTECTED]>>
> "Jenda Krynicky" <[EMAIL PROTECTED]> schreef in bericht
> news:[EMAIL PROTECTED]
> > From: "Wiggins d Anconia" <[EMAIL PROTECTED]>
>
> > To simplify this you may consider using two configs. One "global"
> > that contains t
From: "Dan Muey" <[EMAIL PROTECTED]>
> Here's a thought I'd like to get opinions on...
>
> A recent post that talked about a php calendar script got me thinking.
> One thing that draws people who don't know better to PHP over Perl is
> that the php scripts they can get look really really nice, php
A really quick intro and tutorial into MYSQL access via Perl is in the
"MYSQL weekend crash course" a book by Jay Greenspan published by Hungry
Minds. I bought it and found it to be a great intro to Mysql and Perl DB
access in general.
hope this helps,
Ian.
On Friday 31 Oct 2003 6:48 am, Bry
Hi,
I found some important and valuble information on this link regarding SQL
and My SQL
http://www.roth.net/perl/odbc/docs/ODBC_Docs.htm
Let me know if u get any other information.
Thanks,
Ramakrishna.S
Valuelabs
- Original Message -
From: "Bryan Harris" <[EMAIL PROTECTED]>
To: "Be
Why don't you koin the DBI mailing list?
You are going to become an expert reading the archives of this list :)
- Original Message -
From: "Bryan Harris" <[EMAIL PROTECTED]>
To: "Beginners Perl" <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 8:48 AM
Subject: connecting to mysql for t
I've been enjoying perl for almost 2 years now, and I think I'm ready to
step into interacting with a database. (big step!)
I have mysql, and I have some simple tables. Now I want to be able to
access those tables from perl. Can anyone offer a simple tutorial on how to
do this?
Thanks!!!
-
Le jeu 30/10/2003 à 23:59, Dan Muey a écrit :
> Here's a thought I'd like to get opinions on...
> ---Who cares you say, it's not Perl's job to make it look nice?
> Right but it's not PHP's job either and some of them look very nice.
But PHP, I think, integrates html code a better way. You can just
"Wiggins D Anconia" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> > Hi,
> I have found in general the
> module that is chosen is based more on the format of the config file,
YAML is a rising star as formats go, I believe.
> > where is hostname? is
it's a system command (ba
"Jenda Krynicky" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> From: "Wiggins d Anconia" <[EMAIL PROTECTED]>
> To simplify this you may consider using two configs. One "global"
> that contains the settings that are the same everywhere (which will
> probably be most of them) and
>> I know there must be a way to do the following:
>>
>> if (($foobar > 3) || ($foo="t" && $bar = "b"))
{print
>> "yup"}
>if (($foobar > 3) || ($foo eq "t" && $bar eq "b"))
{print "yup"}
>
>Your problem is that a single '=' is assignment, not
>equality. '==' could also be used
>instead of 'eq'.
> Hi to all,
>
> I'm having bad times trying to solve this problem.
>
> I've to read from a Webserver-logfile some text indicating what page have been
> visited, and
> tracking the querystring parameters.
>
> The problem is that in the logfile special chars are traslated in "web safe" format
>
Hi to all,
I'm having bad times trying to solve this problem.
I've to read from a Webserver-logfile some text indicating what page have been
visited, and
tracking the querystring parameters.
The problem is that in the logfile special chars are traslated in "web safe" format as
you can see
belo
On Thu, 30 Oct 2003 16:53:14 -0500, Dan Anderson wrote:
> my $dumper = Data::Dumper->new( [%entry], [ qw () ] );
> my $dumpedvalues = $dumper->Dump();
> print $dumpedvalues . "\n";
Why all this fuss? :-) I constantly use this syntax:
use Data::Dumper;
print Dumper( \%hash );
Never bothered
On Thu, 30 Oct 2003 23:37:55 -0500, Scott, Joshua wrote:
> How can I split the data in a line by a single whitespace but also keep
> portions between quotes together?
This is a FAQ:
perldoc -q delimit
--
Tore Aursand <[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
On Thu, 30 Oct 2003 23:45:25 +0100, Kevin Pfeiffer wrote:
> print Dumper(\$hash_ref);
I guess $hash_ref already _is_ a hash reference, so you don't need to
reference it again;
print Dumper( $hash_ref );
--
Tore Aursand <[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
On Thu, 30 Oct 2003 17:18:06 -0500, William.Ampeh wrote:
> I am looking for a Web-based calendar manager [...]
What excactly is a calendar manager? To me it sounds like software (web
based, this time) which manages calendars. Do you really have that many? :-)
--
Tore Aursand <[EMAIL PROTECTED
In article <[EMAIL PROTECTED]>, Kevin Old
wrote:
[...]
> Yeah, I guess that's it. I'm not really sure how it works (yet), but I
> got it from Programming Perl. Here's that whole subsection:
Thanks. I see I just need to "do my homework".
--
Kevin Pfeiffer
--
To unsubscribe, e-mail: [EMAIL PR
45 matches
Mail list logo