Re: Syswrite Function in Perl

2007-01-02 Thread Dharshana Eswaran
On 1/3/07, John W. Krahn <[EMAIL PROTECTED]> wrote: Dharshana Eswaran wrote: > Hi All, Hello, > I have a piece of code which reads as shown below: > > unless (open(IN, "in.txt")) { >die("Cannot open input file \n"); You should include the $! variable in the error message so you know *

Re: Syswrite Function in Perl

2007-01-02 Thread Arun . S
> $input = ; > @input = split(/ +/, $input); > $new = join ("", @input); Why not just modify the string instead of splitting and joining: ( my $new = ) =~ s/ +//g; I believe the above line does not work. It must be ( my $new = ) =~ s/ \+//g; Whilst this email has been checked for all known

Re: Syswrite Function in Perl

2007-01-02 Thread John W. Krahn
Dharshana Eswaran wrote: > Hi All, Hello, > I have a piece of code which reads as shown below: > > unless (open(IN, "in.txt")) { >die("Cannot open input file \n"); You should include the $! variable in the error message so you know *why* it failed. >} > binmode(IN); You appear to

Re: DBI::execute(): how to evade quoting identifier names

2007-01-02 Thread D. Bolliger
Bram Kuijper am Dienstag, 2. Januar 2007 18:07: > Hi all, Hello Bram Kuijper > I try to execute the following SQL query in PostGreSQL 8.1. However, it > gives errors since DBI::execute() automatically quotes when it inserts > its arguments into the SQL query. Is there any way to change the quot

DBI::execute(): how to evade quoting identifier names

2007-01-02 Thread Bram Kuijper
Hi all, thanks for the quick solution to my previous __FUNCTION__ question. I have another problem: I try to execute the following SQL query in PostGreSQL 8.1. However, it gives errors since DBI::execute() automatically quotes when it inserts its arguments into the SQL query. Is there any w

Re: php's __FUNCTION__ equivalent in Perl

2007-01-02 Thread Ovid
--- Bram Kuijper <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there some type of equivalent to PHP's __FUNCTION__ magical > constant > in Perl, with which you can get the current function's name within > the > function's body? > > The list of perl predefined variables from Larry Wall's book doe

RE: Free Perl Editor

2007-01-02 Thread Sam DeForest
> -Original Message- > From: Paul Brasseur [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 23, 2006 1:17 PM > To: beginners@perl.org > Subject: Free Perl Editor > > > Hello: > > Try PSPad ! It is a Great Perl/PHP Editor. It has many nice > Features such > as Permanent and

php's __FUNCTION__ equivalent in Perl

2007-01-02 Thread Bram Kuijper
Hi all, Is there some type of equivalent to PHP's __FUNCTION__ magical constant in Perl, with which you can get the current function's name within the function's body? The list of perl predefined variables from Larry Wall's book does provide a __FILE__ constant, but apparently a __FUNCTION__

Re: Free Perl Editor

2007-01-02 Thread Ovid
--- OROSZI Balázs <[EMAIL PROTECTED]> wrote: > Emacs and Vim are both braindead. That was a not a helpful comment. If you had attempted to justify that statement, it might have come across otherwise. Frankly, I use vim and once you know how it works, it's extremely powerful. Combining vim with

Re: Free Perl Editor

2007-01-02 Thread Chad Perrin
On Tue, Jan 02, 2007 at 02:32:52PM +, Matt Richards wrote: > OROSZI Balázs wrote: > >Emacs and Vim are both braindead. > > what do you use as your text editor then? His bad attitude, I guess. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "It's just incredible that a trillion-syna

Re: Free Perl Editor

2007-01-02 Thread Matt Richards
what do you use as your text editor then? OROSZI Balázs wrote: Emacs and Vim are both braindead. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Free Perl Editor

2007-01-02 Thread OROSZI Balázs
Emacs and Vim are both braindead. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Syswrite Function in Perl

2007-01-02 Thread D. Bolliger
Dharshana Eswaran am Dienstag, 2. Januar 2007 08:02: > Hi All, Hi Dharshana Eswaran > I have a piece of code which reads as shown below: > > unless (open(IN, "in.txt")) { > die("Cannot open input file \n"); > } > binmode(IN); > > unless (open(OUT, "+>output.txt")) { > die("Can

Perl interaction

2007-01-02 Thread Rafael Gonzalez
Hello: I'm thinking in to create an image (.jpg or .gif) in C++ or Visual Basic with information generated from a Perl script. Is it possible to call a .dll library or an .exe file from Perl or CGI, so sending and receiving parameters? Thanks in advance Rafael -- To unsubscribe, e-mail: [

Re: Hello to Perl World

2007-01-02 Thread Chad Perrin
On Mon, Jan 01, 2007 at 11:22:17PM -0700, eko hermiyanto wrote: > There is no good editor other than GNU Emacs. It's hard to learn in the > first timer but really worth in the long time. GNU Emacs can be used to do > almost everything. Even, it's very good to be used for the almighty Perl > program

Re: Free Perl Editor

2007-01-02 Thread Chad Perrin
On Tue, Jan 02, 2007 at 01:39:02PM +0700, Eko Budiharto wrote: > who said only GNU emacs is everything. Actually, there are other plain > text editors you can use. I'm a big fan of Vim and SciTE (in that order). -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] "The measure on a man's rea