Re: Create Directories

2006-05-22 Thread Dr.Ruud
SkyBlueshoes schreef: > Another stupid question, search.cpan.org doesn't like me, lol: > > Which module is best for creating a directory and all directories in > between. > > Ex: > > I want to create the directory : \dir1\dir2\dir3\targetdirectory > but none of the preceding numbered directories e

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread David Romano
Hi Chandru, On 5/22/06, Chandru wrote: Hi I have looked some example scripts in Perl. I would like to have some pdfs or chms to guide myself.Can any one has such books. - Chandru Ryan Frantz wrote: > >> -Original Message- >> From: Chandru [mailto:[EMAIL PROTECTED] >> Sent: Monday, May

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread David Romano
Hi Chandru, - Show quoted text - On 5/22/06, Chandru wrote: Hi I have looked some example scripts in Perl. I would like to have some pdfs or chms to guide myself.Can any one has such books. - Chandru Ryan Frantz wrote: > >> -Original Message- >> From: Chandru [mailto:[EMAIL PROTECTED]

Re: Socket Problems

2006-05-22 Thread David Romano
Hi Practical Perl, On 5/22/06, Practical Perl wrote: Hello,lists, We write a simple socket script using IO::Socket module.When this script connect to peer server (both server and my scripts are in the same LAN),it always dropped and print these errors: IO::Socket::INET: connect: Connection refu

Re: Counting & arrays

2006-05-22 Thread JupiterHost.Net
for my $action (keys %actionrule) { print "Action is: $action\n"; for my $rule (keys %{ $actionrule{$action} }) { print "\tRule is: $rule\n"; print "\t\tand its count is: $actionrule{$action}{$rule}\n"; } } THANK YOU!! This works beautifully! I was pulling my

Re: Create Directories

2006-05-22 Thread Anthony Ettinger
File::Spec if you are working cross platform. then "mkdir $path" On 5/22/06, Toby Stuart <[EMAIL PROTECTED]> wrote: > -Original Message- > From: SkyBlueshoes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 23 May 2006 12:38 PM > To: beginners@perl.org > Subject: Create Directories > > > An

RE: Counting & arrays

2006-05-22 Thread Michael Gargiullo
-Original Message- From: JupiterHost.Net [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 6:12 PM To: beginners@perl.org Subject: Re: Counting & arrays Michael Gargiullo wrote: > It's been a while since I've used Perl and I need some help with a > multidimensional array. AKA a HA

RE: Create Directories

2006-05-22 Thread Toby Stuart
> -Original Message- > From: SkyBlueshoes [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 23 May 2006 12:38 PM > To: beginners@perl.org > Subject: Create Directories > > > Another stupid question, search.cpan.org doesn't like me, lol: > > Which module is best for creating a directory and al

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Chandru
Hi I have looked some example scripts in Perl. I would like to have some pdfs or chms to guide myself.Can any one has such books. - Chandru Ryan Frantz wrote: -Original Message- From: Chandru [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 2:23 AM To: Jeff Pang Cc: beginners

Create Directories

2006-05-22 Thread SkyBlueshoes
Another stupid question, search.cpan.org doesn't like me, lol: Which module is best for creating a directory and all directories in between. Ex: I want to create the directory : \dir1\dir2\dir3\targetdirectory but none of the preceding numbered directories exist... Sky Blueshoes -- To unsu

Socket Problems

2006-05-22 Thread Practical Perl
Hello,lists, We write a simple socket script using IO::Socket module.When this script connect to peer server (both server and my scripts are in the same LAN),it always dropped and print these errors: IO::Socket::INET: connect: Connection refused IO::Socket::INET: connect: Connection timed out H

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Japerlh
Thanks a lot for all you guys. On 5/23/06, Timothy Johnson <[EMAIL PROTECTED]> wrote: -Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Sunday, May 21, 2006 11:06 PM To: beginners@perl.org Subject: Re: Looking for example Perl scripts to be used in Perl Training. > I

Re: file list

2006-05-22 Thread Ricky Zhou
On 5/22/06, SkyBlueshoes <[EMAIL PROTECTED]> wrote: Which module would be best to build an array of all files within a directory and all subdirectories matching the extension? I will need the full path to those files included with the filename in the array... I'm not sure if there's a more fitti

RE: file list

2006-05-22 Thread Timothy Johnson
Check out the File::Find module. It should come standard with your distribution. You may have to re-read the docs a couple of times before it makes sense, but it works well. Post here if you have any problems. -Original Message- From: SkyBlueshoes [mailto:[EMAIL PROTECTED] Sent: Mon

file list

2006-05-22 Thread SkyBlueshoes
Which module would be best to build an array of all files within a directory and all subdirectories matching the extension? I will need the full path to those files included with the filename in the array... SkyBlueshoes -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [OT]Re: export script problem

2006-05-22 Thread Chad Perrin
On Mon, May 22, 2006 at 01:50:04PM -0600, Jeremy Vinding wrote: > Graeme McLaren wrote: > > > >Public Sub House() > > > >On Error Resume drink > > > >If Pint.empty = True Then > >Pint.refill > > Else > >Pint.drink > >End if > > > >stomach.add Pint >

Re: No Such File Error on Simple Scrape

2006-05-22 Thread Dr.Ruud
[EMAIL PROTECTED] schreef: > my $output_dir = "c:/training/bc"; > [...] > open OUT, ">output_dir/simple2.html" or die "Can't open file: $!"; ^ Maybe you meant $output_dir? ^ -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: No Such File Error on Simple Scrape

2006-05-22 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > When I execute the script below, I get the error message "No such file > or directory at simple2.pl line 21." Line 21 is the Open OUT > statement. This script parallels a tutorial script that does work and > I don't see the error. It does print to the screen if I co

Re: Counting & arrays

2006-05-22 Thread JupiterHost.Net
Michael Gargiullo wrote: It's been a while since I've used Perl and I need some help with a multidimensional array. AKA a HASH :) You want a hash not an array :) I have a file that I need to compile some stats on. I need to keep track of 'actions' and 'rules'. Yes, stats from a firewall.

Re: No Such File Error on Simple Scrape

2006-05-22 Thread kc68
On Mon, 22 May 2006 18:00:25 -0400, Jaime Murillo <[EMAIL PROTECTED]> wrote: On Monday 22 May 2006 14:49, [EMAIL PROTECTED] wrote: When I execute the script below, I get the error message "No such file or directory at simple2.pl line 21." Line 21 is the Open OUT statement. This script para

Re: No Such File Error on Simple Scrape

2006-05-22 Thread Jaime Murillo
On Monday 22 May 2006 14:49, [EMAIL PROTECTED] wrote: > When I execute the script below, I get the error message "No such file or > directory at simple2.pl line 21." Line 21 is the Open OUT statement. > This script parallels a tutorial script that does work and I don't see the > error. It does pr

RE: No Such File Error on Simple Scrape

2006-05-22 Thread Timothy Johnson
One simple thing you might want to start doing is including the filename in your error message. Quite often this message means that either you're not in the starting directory you think you're in or part of your filename is being interpreted as something other than what you intended. m

No Such File Error on Simple Scrape

2006-05-22 Thread kc68
When I execute the script below, I get the error message "No such file or directory at simple2.pl line 21." Line 21 is the Open OUT statement. This script parallels a tutorial script that does work and I don't see the error. It does print to the screen if I comment out the Open OUT line.

Unknown Date Standards and ISO 8601

2006-05-22 Thread Kenneth B. Hill
I apologize if this posting is not specific to Perl usage, but I'm doing some research on "standards" for handling unknown date values (e.g, when a complete date is not known). I work in an industry niche (cancer registry and public health data collection) that does not follow ISO 8601 for

Re: Locked database SQLite

2006-05-22 Thread SkyBlueshoes
Can anybody help me with this? I tried the solution on the link below, adding in $sth->finish(); and although the error message is surpressed now, the record never gets inserted... Sky Blueshoes SkyBlueshoes wrote: I'm getting an error using SQLite: DBD::SQLite::sth execute failed: database

Re: Counting & arrays

2006-05-22 Thread Dave Gray
On 5/22/06, Michael Gargiullo <[EMAIL PROTECTED]> wrote: It's been a while since I've used Perl and I need some help with a multidimensional array. I have a file that I need to compile some stats on. I need to keep track of 'actions' and 'rules'. Yes, stats from a firewall. Both 'actions' and

Counting & arrays

2006-05-22 Thread Michael Gargiullo
It's been a while since I've used Perl and I need some help with a multidimensional array. I have a file that I need to compile some stats on. I need to keep track of 'actions' and 'rules'. Yes, stats from a firewall. Both 'actions' and 'rules' need to be dynamic so if a rule is added, it's au

[OT]Re: export script problem

2006-05-22 Thread Jeremy Vinding
Graeme McLaren wrote: Public Sub House() On Error Resume drink If Pint.empty = True Then Pint.refill Else Pint.drink End if stomach.add Pint MsgBox " I've had " & stomach.count & " Pints" MsgBox "VERY DRUNK" End Sub sub house {

export script problem

2006-05-22 Thread Graeme McLaren
Hi all, I need to export data from one database table to another. I also need to cleanse the data before inserting it to the other DB. There is only one unique column "login" and that is an string such as "login1". The rest are contact details, personal name / address and business name / addr

RE: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Timothy Johnson
-Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Sunday, May 21, 2006 11:06 PM To: beginners@perl.org Subject: Re: Looking for example Perl scripts to be used in Perl Training. > I think both "Learning Perl" and "Perl Cook Book" are right for your > purpose. > I got th

RE: Howto check a parameter size in CGI.pm

2006-05-22 Thread Charles K. Clarkson
Wijaya Edward wrote: : Is there a way to determine the size of a parameter of a : textarea or filefield in CGI.pm? You can determine the length (using the length() function) of a field, but not the size of the control on the form. That information is not sent via the Common Gateway Interface.

Re: Event Timer in Perl

2006-05-22 Thread Stephen Kratzer
On Saturday 20 May 2006 23:13, SkyBlueshoes wrote: > I have a script that uses an infinite loop, I'm wanting to be able to > set a timer that when expired will run a subroutine, something sort of > like Poe's callback timer feature. How would I go about doing this? I > need to be able to set multip

Re: Howto check a parameter size in CGI.pm

2006-05-22 Thread JupiterHost.Net
Wijaya Edward wrote: Hi, Is there a way to determine the size of a parameter of a textarea or filefield in CGI.pm? For example, given this form. __BEGIN__ use CGI qw/:standard/; # snip textarea( -name=> 'some_name', -rows=> 10,

RE: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Ryan Frantz
>-Original Message- >From: Rob Coops [mailto:[EMAIL PROTECTED] >Sent: Monday, May 22, 2006 9:17 AM >To: Ryan Frantz >Cc: beginners@perl.org >Subject: Re: Looking for example Perl scripts to be used in Perl Training. > >Ryan I guess there is a diffrence between knowing the internal workin

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Rob Coops
Ryan I guess there is a diffrence between knowing the internal workings of perl and all the intresting tricks and things you can do on the very advanced level and a good script to show the basics. The problem is simple is often more difficult then it seems. And I do think as stated before that th

RE: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Ryan Frantz
> -Original Message- > From: Chandru [mailto:[EMAIL PROTECTED] > Sent: Monday, May 22, 2006 2:23 AM > To: Jeff Pang > Cc: beginners@perl.org > Subject: Re: Looking for example Perl scripts to be used in Perl Training. > > please send it > > -Chandru. > > Jeff Pang wrote: > > Looking f

Re: Stealing vs buying Was: Print

2006-05-22 Thread Bjørge Solli
On Friday 19 May 2006 23:30, Rance Hall wrote: > Kevin Viel wrote: > > Bjørge Solli wrote: > >> HOY! People spend years writing those books - buy it! > > > > Seconded. Under US law, you may copy one article or one *chapter* under > > certain circumstances. > > > > As a hint, I got several new O'Re

Howto check a parameter size in CGI.pm

2006-05-22 Thread Wijaya Edward
Hi, Is there a way to determine the size of a parameter of a textarea or filefield in CGI.pm? For example, given this form. __BEGIN__ use CGI qw/:standard/; # snip textarea( -name=> 'some_name', -rows=> 10, -columns