Re: @INC problem with ssh

2011-04-06 Thread C.DeRykus
On Apr 6, 7:45 am, paik...@gmail.com (Dermot) wrote: > Hello All, > > I have a issue when I attempt to run a script on one host (B) that is > called by ssh from other host (A). > > On host B, I have the script in /usr/local/bin/stuff.pl. The script > has the following near the top: > > use strict;

Re: Order in which keys are stored in a hash

2011-04-06 Thread Balachandran Sivakumar
On Wed, Apr 6, 2011 at 11:09 PM, Shawn H Corey wrote: >> >>      Thanks a lot for all the replies, links and code snippets. I was >> trying out a few examples from a few websites. And, I was also not >> aware of perldoc until a few hours back. That does seem to be a good >> way to provide help. J

RE: Oracle nightmare

2011-04-06 Thread Kelath, Ram
The DROP Table is likely failing because the table has already been dropped. One thing I noticed is that you set p1 to pippo using single quotes and p2 to não using double quotes. Not sure if that would be preserved when swapping out the parameters, but I would try using single quotes for defin

Re: Shorten String

2011-04-06 Thread Uri Guttman
> "M" == Matt writes: >>> You probably want something like: >>> >>>   substr $x, 10, -10, " ... " if length $x>  25; >> >> Very neat Paul. My hat's off to you. M> Worked perfectly too. Thanks Paul. the real question is whether you read the docs on substr and understand how t

Re: Shorten String

2011-04-06 Thread Matt
>> You probably want something like: >> >>   substr $x, 10, -10, " ... " if length $x>  25; > > Very neat Paul. My hat's off to you. Worked perfectly too. Thanks Paul. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.

Re: Order in which keys are stored in a hash

2011-04-06 Thread Shlomi Fish
Hi Balachandran, On Wednesday 06 Apr 2011 16:22:44 Balachandran Sivakumar wrote: > Hi, > > I am trying to learn hashes in perl. I created an hash > variable with 4 keys. I tried printing the keys in the hash by:(hash > variable is %machines) > > foreach $key (keys %machines) { > pr

Re: Order in which keys are stored in a hash

2011-04-06 Thread Shawn H Corey
On 11-04-06 10:06 AM, Robert Wohlfarth wrote: On Wed, Apr 6, 2011 at 8:22 AM, Balachandran Sivakumar wrote: I am trying to learn hashes in perl. I created an hash variable with 4 keys. I tried printing the keys in the hash by:(hash variable is %machines) foreach $key (keys %machines)

@INC problem with ssh

2011-04-06 Thread Dermot
Hello All, I have a issue when I attempt to run a script on one host (B) that is called by ssh from other host (A). On host B, I have the script in /usr/local/bin/stuff.pl. The script has the following near the top: use strict; use warnings; use lib qw(/etc/perl); use MyApp::Image; use MyApp::S

Re: Order in which keys are stored in a hash

2011-04-06 Thread Robert Wohlfarth
On Wed, Apr 6, 2011 at 8:22 AM, Balachandran Sivakumar wrote: > I am trying to learn hashes in perl. I created an hash > variable with 4 keys. I tried printing the keys in the hash by:(hash > variable is %machines) > > foreach $key (keys %machines) { > print "$key\n"; > } > In the pe

Order in which keys are stored in a hash

2011-04-06 Thread Balachandran Sivakumar
Hi, I am trying to learn hashes in perl. I created an hash variable with 4 keys. I tried printing the keys in the hash by:(hash variable is %machines) foreach $key (keys %machines) { print "$key\n"; } I noticed that the order in which the keys are printed is different from the orde

Re: Oracle nightmare

2011-04-06 Thread marcos rebelo
The error continues: DBD::Oracle::db do failed: ORA-00942: table or view does not exist (DBD ERROR: error possibly near <*> indicator at char 11 in 'DROP TABLE <*>my_table') [for Statement "DROP TABLE my_table"] at script.pl line 31. ( n�o, não ) nok DBD::Oracle::st execute failed: ORA-00932: inco

Re: Oracle nightmare

2011-04-06 Thread Paul Johnson
On Wed, Apr 06, 2011 at 10:24:37AM +0200, marcos rebelo wrote: > Hi all > > I have already lost one day around coding and documentation with this > problem, so I'm asking for help with DBD::Oracle. > > I'm working around the unicode and BLOB problem. Can someone help me > setting the fooling code

RE: Excessive wait time after fork

2011-04-06 Thread TAO, NENGBING [AG/1005]
It seems the problem can be solved by using POSIX exit. (http://perldoc.perl.org/functions/exit.html ) Thanks to Chris who is in our IT department for pointing me to this. I should have read it more carefully! " The exit() function does not always exit immediately. It calls any defined END routine

RE: Excessive wait time after fork

2011-04-06 Thread TAO, NENGBING [AG/1005]
Hi, >From: Chas. Owens [mailto:chas.ow...@gmail.com] >Sent: Monday, April 04, 2011 6:40 AM >My bet is you don't have enough RAM to hold all of that data; your OS >is being forced to use swap. Your poor machine is so swamped it is >taking that long to get back to normal. >Each key in your hash

Oracle nightmare

2011-04-06 Thread marcos rebelo
Hi all I have already lost one day around coding and documentation with this problem, so I'm asking for help with DBD::Oracle. I'm working around the unicode and BLOB problem. Can someone help me setting the fooling code running and correctly undling the Unicode part use strict; use warnings; us