debug code in BEGIN{} block

2006-01-19 Thread Ken Perl
How to debug code in BEGIN{} block? -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/>

Re: Transform column into row

2006-01-19 Thread Andrej Kastrin
Andrej Kastrin wrote: John Doe wrote: Andrej Kastrin am Mittwoch, 18. Januar 2006 10.49: Dear Perl users, what's the best way to transform column table in row format. I know how to split each line according to delimiter and than put it separately into array, but I have more complicated

Re: CLOSED Re: Obtaining complete Unix command line that evoked script as string

2006-01-19 Thread Jeff Pang
JupiterHost.Net, "Tell you mom I said hi, she appreciates me" Is this word said by you? I think you are very rude,not only to Grant,but to all the people on this list. This kind beginners list has been smirched by your words. -Original Message- >From: "JupiterHost.Net" <[EMAIL PROTECTED

Re: CLOSED Re: Obtaining complete Unix command line that evoked script as string

2006-01-19 Thread JupiterHost.Net
Grant Jacobs wrote: Forced to make time to get off this list as the volume is too much for the megre limit my ISP sets. Thanks again for those that helped; my working solution seems OK for now. Below is a reply to anonymous ("JupiterHost.Net"), anyone else is welcome to ignore it. Wri

CLOSED Re: Obtaining complete Unix command line that evoked script as string

2006-01-19 Thread Grant Jacobs
Forced to make time to get off this list as the volume is too much for the megre limit my ISP sets. Thanks again for those that helped; my working solution seems OK for now. Below is a reply to anonymous ("JupiterHost.Net"), anyone else is welcome to ignore it. Writing a new shell is qui

RE: problems with subroutine prototype checking

2006-01-19 Thread Gavin Bowlby
Jim: Thank you very much for looking at this! Will exporting the function cause prototype checking to be done for all callers? I probably wasn't clear in my original posting, the problem I'm having is that the code sample I gave *does* compile successfully, without errors. I don't need to export

Re: problems with subroutine prototype checking

2006-01-19 Thread Jimmy
- Original Message - From: "Gavin Bowlby" <[EMAIL PROTECTED]> To: Sent: Friday, January 20, 2006 7:57 AM Subject: problems with subroutine prototype checking b.pm: # You may want to add this : package b; require Exporter; our @ISA = qw/Exporter; our @EXPORT qw/b_function/; if you don

problems with subroutine prototype checking

2006-01-19 Thread Gavin Bowlby
All: I'm having problems trying to get Perl function prototype checking working correctly. My code looks something like: main.pl: use a; a.pm: use b; use c; b.pm: sub b_function ($$$) { } c.pm: use d; d.pm: b_functio

perl as service problem

2006-01-19 Thread OXx
Hello all, I wrote a perl script and compiled it with PAR so my executable works fine on windows systems. I would like to execute this as a service . I try with srvany.exe ( http://groups.google.fr/group/comp.lang.perl.misc/browse_thread/thread/f57182ff7dde9269/9b5d4eff94c40373?lnk=st&q=perl+as+a+s

Re: Nested Loop

2006-01-19 Thread mgoland
- Original Message - From: [EMAIL PROTECTED] Date: Thursday, January 19, 2006 3:19 pm Subject: Nested Loop > Greetings, Hello > > Basically I deleted a portion of a mysql database and need to > insert the > subnet back in. The output is suppose to increment the first > field > star

Nested Loop

2006-01-19 Thread overkill
Greetings, Basically I deleted a portion of a mysql database and need to insert the subnet back in. The output is suppose to increment the first field starting with '8' until the IP is 10.168.17.255. I can't figure out my inside loops condition. Maybe there is a perl module for this? Exa

Re: Using XML::Simple [SORRY - correction]

2006-01-19 Thread John Meyer
[EMAIL PROTECTED] wrote: > > Please remove me from this list! Thank you! > > RRCA > > Kindly remove yourself from this list and refrain from showing the rest of us how much of an idiot you are. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Our friend [EMAIL PROTECTED]

2006-01-19 Thread Timothy Johnson
Don't bother emailing him to stop(at least through the list). It's most likely an AutoReply message. I've sent an email to perl.org and AOL, and that's probably about all we can do. -Original Message- From: Gomez, Juan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 11:10 AM

RE: Using XML::Simple

2006-01-19 Thread Michael . Coll-Barth
Well, I just gave this email address to a SPAM list -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 12:59 PM To: [EMAIL PROTECTED]; beginners@perl.org Subject: Re: Using XML::Simple Please remove me from this list! Thank you!

Re: Simplest Way

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Problem with perl module

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Transform column into row

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Problem with perl module

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

RE: Large Uploads

2006-01-19 Thread Gomez, Juan
I think you need to unsubscribe >From here see if in one of your emails Has a link saying unsubscribe Armando Gomez Guajardo Process Engineer Work Ph 956 547 6438 Beeper956 768 4070 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January

Re: Recommend debugger...

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Transform column into row

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Simplest Way

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Problem with perl module

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: How to take a reference "in line"

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Problem with perl module

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Using XML::Simple [SORRY - correction]

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: SCO OSR5 and DBI

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Problem with perl module

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Using XML::Simple

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Using XML::Simple

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Large Uploads

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Large Uploads

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Large Uploads

2006-01-19 Thread RangerRickCA
Please remove me from this list! Thank you! RRCA

Re: Simplest Way

2006-01-19 Thread Bob Showalter
Gladstone Daniel - dglads wrote: What would be the simplest way to remove leading and trailing blanks from a user input? To remove just blanks (but preserving possible trailing newline): s/^ +//, s/ +$// for $input; To remove all whitespace: s/^\s+//, s/\s+$// for $input; I like this i

Re: Recommend debugger...

2006-01-19 Thread Chas Owens
On 1/19/06, SG Edwards <[EMAIL PROTECTED]> wrote: > Dear all, > > I have started using the perl -d dubugger option to step through my > programs but it seems pretty crude and not too user friendly. Can > anyone reccommend a good freeware graphical debugger? I am writing > fairly simple text manipul

Re: Using XML::Simple

2006-01-19 Thread Bjorn Van Blanckenberg
I had to use an combination of GroupTags and then ValueAttr my $ref = XMLin($jdf,GroupTags => { LayerList => 'LayerDetails' }, ValueAttr => [ LayerList => 'Name' ] ); thanks On 19-jan-06, at 12:43, John Doe wrote: Bjorn Van Blanckenberg am Donnerstag, 19. Januar 2006 09.33: I have some el

Re: Simplest Way

2006-01-19 Thread Chas Owens
On 1/19/06, Gladstone Daniel - dglads <[EMAIL PROTECTED]> wrote: > What would be the simplest way to remove leading and trailing blanks > from a user input? > > Daniel Gladstone ([EMAIL PROTECTED]) snip One easy way to do it would be to use a regex: #!/usr/bin/perl $input = <>; chomp($input); pri

Simplest Way

2006-01-19 Thread Gladstone Daniel - dglads
What would be the simplest way to remove leading and trailing blanks from a user input? Daniel Gladstone ([EMAIL PROTECTED]) *** The information contained in this communication is confidential, is intended only for the use of

Re: Large Uploads

2006-01-19 Thread Tom Phoenix
On 1/18/06, Mike Blezien <[EMAIL PROTECTED]> wrote: > is there a recommended method or proceedure, to prevent > possible time-outs There aren't any time-outs built into Perl. Problem solved. :-) > any feedback would be much appreciated. What time-out are you worried about? Perhaps you would be

Re: Transform column into row

2006-01-19 Thread Dr.Ruud
John Doe: > Dr.Ruud: >> John Doe: >>> In constrast to the other presented solutions using a a hash >>> slurping all data from the intput file, the advantage of my >>> solution is that it is *capable to handle 300GB input files* even >>> with 128MB RAM. >> >> Also in contrast is that your solution

Recommend debugger...

2006-01-19 Thread SG Edwards
Dear all, I have started using the perl -d dubugger option to step through my programs but it seems pretty crude and not too user friendly. Can anyone reccommend a good freeware graphical debugger? I am writing fairly simple text manipulation scripts. Thanks, Stephen Edwards -- To unsubsc

Re: Using XML::Simple [SORRY - correction]

2006-01-19 Thread John Doe
John Doe am Donnerstag, 19. Januar 2006 12.43: > $VAR1->{LayerList}->{LayerDetails}= >[ map {%$_} @{$VAR1->{LayerList}->{LayerDetails}} ]; This should be: $VAR1->{LayerList}->{LayerDetails}= [ map {values %$_} @{$VAR1->{LayerList}->{LayerDetails}} ]; (The 'values' omits the repeated 'Name

Re: Using XML::Simple

2006-01-19 Thread John Doe
Bjorn Van Blanckenberg am Donnerstag, 19. Januar 2006 09.33: > I have some elements in my xml that are empty but have attributes. > I would like that I can group the element in function of Attribute Name. > > Status="Available"> > > > > >

Re: Transform column into row

2006-01-19 Thread John Doe
Dr.Ruud am Donnerstag, 19. Januar 2006 00.49: > John Doe schreef: > > In constrast to the other presented solutions using a a hash slurping > > all data from the intput file, the advantage of my solution is that > > it is *capable to handle 300GB input files* even with 128MB RAM. > > Also in contra

Re: Transform column into row

2006-01-19 Thread Dr.Ruud
John Doe schreef: > In constrast to the other presented solutions using a a hash slurping > all data from the intput file, the advantage of my solution is that > it is *capable to handle 300GB input files* even with 128MB RAM. Also in contrast is that your solution assumes sorted input, which was

Using XML::Simple

2006-01-19 Thread Bjorn Van Blanckenberg
I have some elements in my xml that are empty but have attributes. I would like that I can group the element in function of Attribute Name. Status="Available"> I read in I get $VAR1 = { 'ID' => 'r060116_103344354_26'