RE: Perl framework for windows-prob in makefile

2005-08-01 Thread Dhanashri Bhate
Yes! din't work though! -> -Original Message- -> From: Anthony.leung [mailto:[EMAIL PROTECTED] -> Sent: Sunday, July 31, 2005 5:30 PM -> To: Dhanashri Bhate -> Cc: Perl-Beginners (E-mail); Perl-Tips (E-mail) -> Subject: Re: Perl framework for windows-prob in makefile -> -> -> No expert b

RE: Perl framework for windows-prob in makefile

2005-08-01 Thread Dhanashri Bhate
Hi, Well, i do have Active State Perl installed on my machine. I am trying to install Apache's http perl framework test suite! -> -Original Message- -> From: Tim Johnson [mailto:[EMAIL PROTECTED] -> Sent: Monday, August 01, 2005 11:01 AM -> To: Anthony.leung; Dhanashri Bhate -> Cc: Perl-

Re: how to obtain a reference to array which is returned by a function without intermediate array?

2005-08-01 Thread Tom Allison
Well, since fetchrow_array() returns a list (not an array, and not an array ref), the best you can hope for right now is $self->[1] = [ $selectHandle->fetchrow_array() ]; How about? $ary_ref = $sth->fetchrow_arrayref; push @$self, $ary_ref; -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: error message with net::FTP

2005-08-01 Thread Tom Allison
Laurent Coudeur wrote: -Original Message- From: Owen [mailto:[EMAIL PROTECTED] Sent: 29 July 2005 00:07 To: beginners@perl.org Subject: Re: error message with net::FTP On Thu, 28 Jul 2005 10:17:35 -0400 "Laurent Coudeur" <[EMAIL PROTECTED]> wrote: I am having some trouble with net::

ANNOUNCE: Axis Not Evil 0.2 ( Gtk2::Ex::DBI, Gtk2::Ex::Datasheet::DBI, PDF::ReportWriter )

2005-08-01 Thread Daniel Kasak
Greetings. I'm pleased to announce a round of upgrades to the packages making up Axis Not Evil: http://entropy.homelinux.org/axis_not_evil Axis Not Evil is a suit of open-source, cross-platform Perl modules that combine to provide an alternative to a /'leading'/ software vendor's RAD design

RE: reference trouble

2005-08-01 Thread Tim Johnson
It looks like you've made a lot of headway on refs, don't sell yourself short. It just looks like maybe you needed to back away from the problem and see that the reason why it wasn't working was that you were trying to stick a square peg in a round hole, so to speak. It's easy to do when you're

Re: reference trouble

2005-08-01 Thread Tom Allison
Tim Johnson wrote: I think you need to explain a little better what you're trying to do here, and what you EXPECT to happen. For one thing, why are you using $u as your array index? Are you sure you don't want a hash? Well, I was expecting to be able to store numbers in an array so that t

Re: reference trouble

2005-08-01 Thread Jeff 'japhy' Pinyan
On Aug 1, Tom Allison said: I'm trying to convert a hash of hashes to an array of hashes... my $array; while ( my ($k, $v) = each %$hash ) { my $u = str2time($k); #convert to unix timestamp $$array[$u] = $v; } result... Segmentation Fault (core dumped)... The problem is tha

RE: reference trouble

2005-08-01 Thread Tim Johnson
I think you need to explain a little better what you're trying to do here, and what you EXPECT to happen. For one thing, why are you using $u as your array index? Are you sure you don't want a hash? -Original Message- From: Tom Allison [mailto:[EMAIL PROTECTED] Sent: Monday, August

reference trouble

2005-08-01 Thread Tom Allison
I'm trying to convert a hash of hashes to an array of hashes... $hash isa hash reference... my $array; while ( my ($k, $v) = each %$hash ) { my $u = str2time($k); #convert to unix timestamp $$array[$u] = $v; } result... Segmentation Fault (core dumped)... Do I need to predecl

Re: print to a specific location in a file

2005-08-01 Thread John W. Krahn
Brian Volk wrote: > > Is it possible to open a file and print to a specific location in the file? > For example, I have a 1K file and 0 - 511 is where the small description is > stored and starting in position 512 is the path to a pdf file If I do > not have the path in position 512 the lin

print to a specific location in a file

2005-08-01 Thread Brian Volk
Hi All~ Is it possible to open a file and print to a specific location in the file? For example, I have a 1K file and 0 - 511 is where the small description is stored and starting in position 512 is the path to a pdf file If I do not have the path in position 512 the link will be broken on

RE: How to install modules without ppm3 ?

2005-08-01 Thread Brian Volk
> -Original Message- > From: Clement [mailto:[EMAIL PROTECTED] > Sent: Monday, August 01, 2005 3:53 AM > To: "Tim Johnson" > Cc: beginners@perl.org > Subject: Re: How to install modules without ppm3 ? > > > O... sorry, forgot to mention, Yes, I am using Windows. > Any helps ? =) > > Th

RE: print to a specific location in a file

2005-08-01 Thread Brian Volk
-Original Message- From: Brian Volk Sent: Monday, August 01, 2005 11:03 AM To: Beginners (E-mail) Subject: print to a specific location in a file Hi All~ Is it possible to open a file and print to a specific location in the file? For example, I have a 1K file and 0 - 511 is where t

Newbie help for Net::smpp

2005-08-01 Thread Claudio.
Hi I need some help in the implementation of Net::smpp Somebody have a sample about how retrieve the info of submit_sm_resp, next to send a message? i've reading the protocol specification from http://smsforum.net, and this indicates that in the header retrieves the "command_status" field, but i

Re: Some help needed in trying for my first "working" program of my own.

2005-08-01 Thread Wiggins d'Anconia
Zasinger wrote: > Hello beginners, > Welcome... > I'm a bit lost: I just installed perl yesterday and so far > it seems to have massive and appealing potential, I can > hardly belive what I am seeing. > > I'm very, very rusty in any sort of coding having been away > from it for over 15 y

Re: 'Use Lib' problem...

2005-08-01 Thread Tony Frasketi
Sorry... Didn't notice that's what it was Tony Dave Gray wrote: On 7/26/05, Tony Frasketi <[EMAIL PROTECTED]> wrote: I'm trying to use the following 'use lib' statement as described at http://www.unix.org.ua/orelly/perl/prog3/ch31_13.htm It's not nice to link to pirated c

Some help needed in trying for my first "working" program of my own.

2005-08-01 Thread Zasinger
Hello beginners, I'm a bit lost: I just installed perl yesterday and so far it seems to have massive and appealing potential, I can hardly belive what I am seeing. I'm very, very rusty in any sort of coding having been away from it for over 15 years. I've been working at learning all abou

Re: 'Use Lib' problem...

2005-08-01 Thread Dave Gray
On 7/26/05, Tony Frasketi <[EMAIL PROTECTED]> wrote: > I'm trying to use the following 'use lib' statement as described at > http://www.unix.org.ua/orelly/perl/prog3/ch31_13.htm It's not nice to link to pirated copies of books. BAD. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Using Config files and variables.

2005-08-01 Thread Dave Gray
On 7/31/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > problem is that the variables in the config are not being translated into > there actual values before they get used. So you have a plaintext config file with variable names in it that you want perl to interpolate at some point once the co

Re: ref / hash problem

2005-08-01 Thread John Doe
Brent Clark am Montag, 1. August 2005 16.42: > Hi list > > I have my data as so (Thanks to Data::Dumper) > > 'Grac01' => { > 'StndRm' => 'Standard Room', > 'Suite' => 'Suite', > 'Pent' => 'Penthouse' >

ref / hash problem

2005-08-01 Thread Brent Clark
Hi list I have my data as so (Thanks to Data::Dumper) 'Grac01' => { 'StndRm' => 'Standard Room', 'Suite' => 'Suite', 'Pent' => 'Penthouse' }, My code is as so. foreach my $roomCode ( keys %{ $ref_hash

Re: escaping values (DBD::mysql)

2005-08-01 Thread Jeff 'japhy' Pinyan
On Jul 31, Octavian Rasnita said: select ... limit 0,30; but I cannot use: $sth = $dbh->prepare("select ... limit ?,?"); $sth->execute(0, 30); ... because DBI replaces the values entered with '0' and '30' and the query won't be valid. No, you probably can't do that because your SQL engine d

Re: 'Use Lib' problem...

2005-08-01 Thread Jeff 'japhy' Pinyan
On Jul 30, Tony Frasketi said: CGIDIR=$HOME/cgi-bin PMDIR=$CGIDIR/pm export CGIDIR PMDIR Then in my CGI script I have... - use lib "$PMDIR"; No, you need to use $ENV{PMDIR} here. Environment variables are stored in the %ENV hash. -- Jef

Re: How to install modules without ppm3 ?

2005-08-01 Thread angie ahl
This should tell you all you need to know (to do with installing modules anyway ;) http://search.cpan.org/~jhi/perl-5.8.0/pod/perlmodinstall.pod HTH Angie On 8/1/05, Clement <[EMAIL PROTECTED]> wrote: > O... sorry, forgot to mention, Yes, I am using Windows. > Any helps ? =) > > Thanks! > Clem

Re: Read a single line in a file.

2005-08-01 Thread Tom Allison
Hi, Use the script below: open(FILE, $file_name); my ($first, $second, $third, $fourth) = split /,/, ; close FILE; print $third; Teddy my ($word) = (split /,/, )[2]; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to install modules without ppm3 ?

2005-08-01 Thread Clement
O... sorry, forgot to mention, Yes, I am using Windows. Any helps ? =) Thanks! Clement -Original Message- I'm assuming you're using Windows? -Original Message- From: Clement [mailto:perl[at]reborn.org]=20 Sent: Monday, August 01, 2005 1:30 AM To: beginners[at]perl.org Subject:

RE: How to install modules without ppm3 ?

2005-08-01 Thread Tim Johnson
I'm assuming you're using Windows? -Original Message- From: Clement [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 1:30 AM To: beginners@perl.org Subject: How to install modules without ppm3 ? Hello , I am trying to install the module Image::MagicK & GD, however, I can't get

How to install modules without ppm3 ?

2005-08-01 Thread Clement
Hello , I am trying to install the module Image::MagicK & GD, however, I can't get it with ppm3, so I goto cpan.perl.org I can find it, but I know to how to install the .tar.gz file. Anybody help ? Thanks! Clement