Re: Self referencing hash

2008-08-12 Thread Mr. Shawn H. Corey
On Tue, 2008-08-12 at 03:00 +0100, Dermot wrote: > I was struggling with this before I left work. In a line like > print "Starting with ", $self->[0]->{type},"\n"; > > I got > > Starting with HASH(x0023408) > > Not what as I was hoping for. Perhaps I was calling it correctly. > You are calling

Re: Self referencing hash

2008-08-12 Thread Rob Dixon
Dermot wrote: > 2008/8/11 Rob Dixon <[EMAIL PROTECTED]>: > >> - The usual reason for using a variable name with a leading underscore is to >> denote that it's a private variable, but lexical variables aren't visible >> outside the package anyway so you may as well drop the underscore and make it >

output of the sql querry

2008-08-12 Thread elavazhagan perl
Hi Guys, The following $sql querry is being executed in the toad well and getting output as C. While trying to fetch the value through DBI ,it outputs the value as I. Please suggest me to get the right one..Thanks. #Code starts here my $sql = qq[*SELECT MAX(last_run_status) KEEP (DENSE_RANK LAS

Re: Self referencing hash

2008-08-12 Thread Jenda Krynicky
From: "Mr. Shawn H. Corey" <[EMAIL PROTECTED]> > Yes, you have to do it after-the-fact, so to speak. > > #!/usr/bin/perl > > use strict; > use warnings; > use utf8; > > use Data::Dumper; > $Data::Dumper::Sortkeys = 1; > $Data::Dumper::Indent = 1; > $Data::Dumper::Maxdepth = 0; > > my %_HASH;

Trying to create a formatted with with format and write

2008-08-12 Thread Rishi Dhupar
Hi, I have some Perl code that is trying to generate C structs from a csv file. Problem is I am trying to format the output in a specific way. Specifically: struct { type varName; /* comment */ type varName; /* comment * multi-line comment */

clock in perl

2008-08-12 Thread [EMAIL PROTECTED]
can any body tell me how to make clock in perl/mason -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Self referencing hash

2008-08-12 Thread Dermot
> Dermot wrote: >> 2008/8/11 Rob Dixon <[EMAIL PROTECTED]>: >> >>> - The usual reason for using a variable name with a leading underscore is to >>> denote that it's a private variable, but lexical variables aren't visible >>> outside the package anyway so you may as well drop the underscore and mak

Complete program execution trace in Perl !

2008-08-12 Thread Amit Saxena
Hello all, Is there a way through which I can get following information while executing a perl program :- - Details of every argument passed to the subroutine and the value (if any) returned from the subroutine - All the SQL statements printed (something like DBI_trace in perl) - Last

Re: Complete program execution trace in Perl !

2008-08-12 Thread Dermot
2008/8/12 Amit Saxena <[EMAIL PROTECTED]>: > Hello all, > > Is there a way through which I can get following information while executing > a perl program :- > > - Details of every argument passed to the subroutine and the value (if > any) returned from the subroutine > - All the SQL statement

Re: Consult about XS

2008-08-12 Thread Pablo Zea Aranibar
Hi, realy i need your help with this algorithm. what I need is another algorithm in order to improve my own. example: my $firsSet = [ 'a', 'b', 'c', 'd', 'e' ]; my $secondSet = [ 'x', 'y', 'z' ]; my $thirdSet = [ 'a', 'x', 'b', 'y' ]; my $fourthSet = [ 'b', 'd', 'z' ]; my $counter = 0; foreach m

Re: Complete program execution trace in Perl !

2008-08-12 Thread Jenda Krynicky
Date sent: Tue, 12 Aug 2008 21:01:34 +0530 From: "Amit Saxena" <[EMAIL PROTECTED]> To: Perl Subject:Complete program execution trace in Perl ! Copies to: "Amit Saxena" <[EMAIL PROTECTED]> > Hello all, > > Is there a way through which I can get following information while

Re: Consult about XS

2008-08-12 Thread John W. Krahn
Pablo Zea Aranibar wrote: Hi, realy i need your help with this algorithm. what I need is another algorithm in order to improve my own. example: my $firsSet = [ 'a', 'b', 'c', 'd', 'e' ]; my $secondSet = [ 'x', 'y', 'z' ]; my $thirdSet = [ 'a', 'x', 'b', 'y' ]; my $fourthSet = [ 'b', 'd', 'z' ];

Re: Consult about XS

2008-08-12 Thread Rob Dixon
Pablo Zea Aranibar wrote: > > Hi, realy i need your help with this algorithm. > what I need is another algorithm in order to improve my own. > > example: > > my $firsSet = [ 'a', 'b', 'c', 'd', 'e' ]; > my $secondSet = [ 'x', 'y', 'z' ]; > my $thirdSet = [ 'a', 'x', 'b', 'y' ]; > my $fourthSet =