Re: Creating a table with HTML:Template

2006-02-24 Thread David Kaufman
Hi Christian, Christian Stalp [EMAIL PROTECTED] wrote: i try to create a table with HTML:Template for this I fill a array with hashes: while ( $zeile = $result-fetchrow_arrayref ) { $uebergabe{ name = $row-[0], link = $row-[1] }; push ( @suchprofile, \%uebergabe ); } But I got nothing

Re: print_r in Perl

2006-02-24 Thread Bob Showalter
Johannes Ernst wrote: I realize why it does that. I'm asking whether I can have something higher-level that works for objects on the abstraction level where one usually looks at an object. Data::Dumper is designed to produce Perl source code that can be eval'd to reconstruct the object. So

Re: simple references question

2006-02-24 Thread Hans Meier (John Doe)
Bryan R Harris am Donnerstag, 23. Februar 2006 19.30: Responding to your references to modules, we haven't used them because we can't count on them being there. Obviously my problem, not yours. =) [...] There is no must to have them installed in default locations. You can install them in any

tar command

2006-02-24 Thread Irfan J Sayed
Hi All, I need to execute unix tar command thru perl file can somebody helps me out in this regard Regards Irfan Sayed

Re: tar command

2006-02-24 Thread Hans Meier (John Doe)
Irfan J Sayed am Freitag, 24. Februar 2006 16.36: Hi All, I need to execute unix tar command thru perl file can somebody helps me out in this regard http://search.cpan.org/~kane/Archive-Tar-1.28/lib/Archive/Tar.pm hth Hans -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: tar command

2006-02-24 Thread Chas Owens
On 2/24/06, Irfan J Sayed [EMAIL PROTECTED] wrote: Hi All, I need to execute unix tar command thru perl file can somebody helps me out in this regard Regards Irfan Sayed You might look at Tar (http://search.cpan.org/~cdybed/Tar-0.04/Tar.pm), Archive::Tar

running Perl in verbose mode

2006-02-24 Thread Gerald Wheeler
Running Perl on HP.. Is there such a thing as running Perl in verbose mode? It would be nice to see the results of some of the commands, etc. executed/evaluated.. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: running Perl in verbose mode

2006-02-24 Thread Tom Phoenix
On 2/24/06, Gerald Wheeler [EMAIL PROTECTED] wrote: Is there such a thing as running Perl in verbose mode? It would be nice to see the results of some of the commands, etc. executed/evaluated.. I don't know of anything quite like that, but you can always step through code in the debugger.

Re: tar command

2006-02-24 Thread Irfan J Sayed
Hi All, Thanks for mail I am using following script for backup of clearcase data. the problem is that it executes upto the tar command but when it comes to the zip command it simply hangs. could u plz help me out regards irfan. #!/usr/bin/perl -w # This script takes the backup of vobs ,

Re: tar command

2006-02-24 Thread Chas Owens
On 2/24/06, Irfan J Sayed [EMAIL PROTECTED] wrote: Hi All, Thanks for mail I am using following script for backup of clearcase data. the problem is that it executes upto the tar command but when it comes to the zip command it simply hangs. could u plz help me out regards irfan.

Re: tar command

2006-02-24 Thread Chas Owens
On 2/24/06, Irfan J Sayed [EMAIL PROTECTED] wrote: snip `$CT lock vob:$vob_tag`; snip `$cc stop`; snip `$cc start`; snip `$CT unlock vob:$vob_tag`; snip I take back my last comment. You are using the backquotes incorrectly. You should only use backquotes when you want to capture

Re: tar command

2006-02-24 Thread Chas Owens
On 2/24/06, Irfan J Sayed [EMAIL PROTECTED] wrote: Hi All, Thanks for mail I am using following script for backup of clearcase data. the problem is that it executes upto the tar command but when it comes to the zip command it simply hangs. could u plz help me out regards irfan. snip

Re: tar command

2006-02-24 Thread Irfan J Sayed
Hi , I already tested with /vobstg.tar in the gzip command but still it's hanging and i am executing this perl script from / partition only. Main thing is that it's creating /vobstg.tar.gz file but not coming to shell prompt or not executing next command plz let me know any other option.

Re: tar command

2006-02-24 Thread Tom Phoenix
On 2/24/06, Irfan J Sayed [EMAIL PROTECTED] wrote: plz let me know any other option. Have you tried the Perl debugger? See the perldebug manpage. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: tar command

2006-02-24 Thread Hans Meier (John Doe)
Irfan J Sayed am Freitag, 24. Februar 2006 19.13: Hi , I already tested with /vobstg.tar in the gzip command but still it's hanging and i am executing this perl script from / partition only. Main thing is that it's creating /vobstg.tar.gz file but not coming to shell prompt or not executing

Re: running Perl in verbose mode

2006-02-24 Thread Chas Owens
On 2/24/06, Gerald Wheeler [EMAIL PROTECTED] wrote: Running Perl on HP.. Is there such a thing as running Perl in verbose mode? It would be nice to see the results of some of the commands, etc. executed/evaluated.. Thanks Luckily there is a new debug module (Devel::ebug) that makes writing

Re: tar command

2006-02-24 Thread Chas Owens
On 2/24/06, Hans Meier (John Doe) [EMAIL PROTECTED] wrote: Irfan J Sayed am Freitag, 24. Februar 2006 19.13: Hi , I already tested with /vobstg.tar in the gzip command but still it's hanging and i am executing this perl script from / partition only. Main thing is that it's creating

Generation of method names

2006-02-24 Thread Klaus Jantzen
Hi, to read a record from a database I generated a list of the column names (@fields). The get/set methods of the record class are constructed like set+name of column e.g. getDate, setAmount. After the DB-connect I would like to automatically generate the name of the appropriate

alternating bgcolor in rows

2006-02-24 Thread henry chen
I can't seem to figure out how to alternate the bgcolor for each row that i'm printing from arrayref. Is there a 'foreveryother' function that would allow me to put two lines in the loop? Or is there someway I can put two rows of information and loop that? Here's what I have so far.

Re: alternating bgcolor in rows

2006-02-24 Thread Chas Owens
On 2/25/06, henry chen [EMAIL PROTECTED] wrote: I can't seem to figure out how to alternate the bgcolor for each row that i'm printing from arrayref. Is there a 'foreveryother' function that would allow me to put two lines in the loop? Or is there someway I can put two rows of information

Re: alternating bgcolor in rows

2006-02-24 Thread Hans Meier (John Doe)
Chas Owens am Samstag, 25. Februar 2006 07.17: [...] Use the module operator (%) with an if statement to do different things in a loop: my $rows = $dbhandle-selectall_arrayref($sql) || die $dbhandle-errstr; if (@$rows) { print centertable border=1 cellspacing=0 cellpadding=3

Re: alternating bgcolor in rows

2006-02-24 Thread Hans Meier (John Doe)
Chas Owens am Samstag, 25. Februar 2006 08.18: [...] Aye, I am an idiot. No, your help on this list is very valuable, and, imho, typos are not proof for idiocy... Hans -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: alternating bgcolor in rows

2006-02-24 Thread Chas Owens
On 2/25/06, Hans Meier (John Doe) [EMAIL PROTECTED] wrote: Chas Owens am Samstag, 25. Februar 2006 08.18: [...] Aye, I am an idiot. No, your help on this list is very valuable, and, imho, typos are not proof for idiocy... Hans No, but typing when one should be sleeping is. -- To