PERL MYSQL query "IF EXISTS then UPDATE else INSERT"

2010-10-19 Thread S Pratap Singh
Hello, I want to update my database if the key value is already there then it will update the required field else it will insert the new row in the same table. Insert query works fine but I am not able to figure out how to achieve this "IF EXISTS then UPDATE else INSERT" using a one liner MYSQL

SSH to remote machines..

2010-10-19 Thread Bob Null
Hello Folks, I want to create a chuck of code that will take a list of instructions (things one would type at a shell) and have them run one by one until complete, then gracefully log out. Anyone have any suggestions? I would like something that looks similar to this: my @instructions = ("ping th

Re: map HoAoA

2010-10-19 Thread brian d foy
In article , Brandon McCaig wrote: > On Tue, Oct 19, 2010 at 2:31 AM, brian d foy wrote: > > Actually, we call it the "range operator" in Learning Perl. It just > > happens to be in a more general section named "List Literals". Both > > "range operator" and '..' have entries in the indices of Le

Re: map HoAoA

2010-10-19 Thread Brandon McCaig
On Tue, Oct 19, 2010 at 2:31 AM, brian d foy wrote: > Actually, we call it the "range operator" in Learning Perl. It just > happens to be in a more general section named "List Literals". Both > "range operator" and '..' have entries in the indices of Learning Perl > and Programming Perl. Perhaps y