incorporer du php dans une page en perl-cgi ?

2005-12-03 Thread ecocode
Bonsoir ! Y a-t-il moyen d'incorporer le résultat d'une page php dans une page cgi-perl ? Je voudrais pouvoir incorporer la page de Wordpress dans une page cgi-pl, sans pour autant devoir utiliser un frame ... Merci -- Eco http://www.ecocode.net * Life is wonderful with Emacs and Perl *

Re: incorporer du php dans une page en perl-cgi ?

2005-12-03 Thread Ovid
Bonsoir eco, Je ne parle pas Français trés bien. --- ecocode [EMAIL PROTECTED] wrote: Bonsoir ! Y a-t-il moyen d'incorporer le résultat d'une page php dans une page cgi-perl ? Can you incorporate the results of a PHP page in a Perl CGI script? Je voudrais pouvoir incorporer la page de

Re: incorporer du php dans une page en perl-cgi ?

2005-12-03 Thread Perl Hack
translation Hi! Is there a way to incorporate the output of a php page in a cgi-perl [script]/page? I would like to incorporate a page from Wordpress in a cgi-perl [script]/page, without having to use frames. Thanks! /translation Eco, I thought I help English readers understand your

syntax error

2005-12-03 Thread Thom Hehl
OK, I'm getting an error running my perl script and can't seem to see the problem. Here's the error: syntax error at C:\src\rex\rex_config.cgi line 544, near $sysnamelist[ syntax error at C:\src\rex\rex_config.cgi line 546, near } elsif Execution of C:\src\rex\rex_config.cgi aborted due to

RE: syntax error

2005-12-03 Thread Charles K. Clarkson
Thom Hehl mailto:[EMAIL PROTECTED] wrote: : $SysIndex = 0; : : if ($PageNo==1) : { : my @sysnamelist=split(/$SEPARATOR/,$config{$SYSNAME}); : my $sysnamelist[$SysIndex]=$input{$SYSNAME}; Remove the my. $sysnamelist[$SysIndex] = $input{$SYSNAME}; :

Slow Performance using Perl script and DOSEMU

2005-12-03 Thread Brian Hancock
Hi, I am using WordPerfect 5.1 for DOS to merge information from a database (WP secondary file) with a WP form file (WP Primary file), then print it from WP5.1 using a PostScript printer driver to a PostScript File. After exiting DOSEMU I run ps2pdf to convert the previous output to a PDF file,

Re: syntax error

2005-12-03 Thread ecocode
* [EMAIL PROTECTED] (Thom Hehl) wrote: | | my $sysnamelist[$SysIndex]=$input{$SYSNAME}; why do you need 'my' here ? -- Eco http://www.ecocode.net * Life is wonderful with Emacs and Perl * -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sockets questions

2005-12-03 Thread Octavian Rasnita
From: Scott [EMAIL PROTECTED] I recently started messing with perl sockets and I was wondering if it is possible to do any of the following: - Pre-shared key, to act as some sort of authentication. Currently I have it checking the peer address, but I figure that could be spoofed. Where can

Re: Flushing Buffers (WAS: recursive search)

2005-12-03 Thread John Doe
The Ghost am Freitag, 2. Dezember 2005 19.30: Hi, In addition to John W. Krahn's good advices: So far I did this: #!/usr/bin/perl use File::Find; my $totalLines; find(\wanted, '@directories'); sub wanted { unless ($_=~m/.html|.mas|.pl|.txt$/i) {return 0;} #filter the

Intercommunication between Perl and C

2005-12-03 Thread He Nan
What should I do if I need an intercommunication between a perl and c program ? Are there any examples I could follow , or what books I should read ? I'm confused...

Re: Flushing Buffers (WAS: recursive search)

2005-12-03 Thread John W. Krahn
John Doe wrote: The Ghost am Freitag, 2. Dezember 2005 19.30: open FILE, $File::Find::name; Always check if operations succeeded: open (FILE, '', $File::Find::name) or die couldn't open $File::Find::name: $!; Thanks, don't know how I missed that. :-) John -- use

Re: Flushing Buffers (WAS: recursive search)

2005-12-03 Thread John W. Krahn
John Doe wrote: The Ghost am Freitag, 2. Dezember 2005 19.30: print $_: ; my @lines=FILE; and close opened files: close FILE or die couldn't close $File::Find::name: $!; print $#lines\n; $totalLines+=$#lines; #wanted's value is ignored so we have to do

Why not to use env (was Re: Perl executable pathname needs to be hardwired?)

2005-12-03 Thread Randal L. Schwartz
Chris == Chris Devers [EMAIL PROTECTED] writes: Chris My understanding is that the Python idiom is to avoid putting the full Chris path, in favor of something like Chris #!/usr/bin/env python This won't work if env is not in /usr/bin (like say, /bin/env). Chris #!env python This

Re: Perl executable pathname needs to be hardwired?

2005-12-03 Thread Randal L. Schwartz
Adriano == Adriano Ferreira [EMAIL PROTECTED] writes: Adriano Ok. I will try to be less lazy. What I was trying to workaround is to Adriano place perl binaries at a place available to my user, using a Adriano distribution which was supposed to be installed by 'root' (which I am Adriano not). The

Re: Help with syntax local (*in);

2005-12-03 Thread Randal L. Schwartz
Timothy == Timothy Johnson [EMAIL PROTECTED] writes: Timothy You're creating a typeglob *in and declaring it to be local. I'm not Timothy sure why you would want to do this, but this makes $in, @in, and %in all Timothy local. and in, and the filehandle/directoryhandle in, also local. And the

Re: config files

2005-12-03 Thread Randal L. Schwartz
M == M Lewis [EMAIL PROTECTED] writes: M do '/absolute/path/to/mcr.conf'; M Which defeats my purpose of getting the configuration items out of the M scripts themselves. I don't want the users to have to edit the three M scripts, only the mcr.conf file. If your configs are relative to the file

Re: Open source IDE for Perl

2005-12-03 Thread Randal L. Schwartz
Andrej == Andrej Kastrin [EMAIL PROTECTED] writes: Andrej Dear all, Andrej which is yours best open source IDE for Perl. I use SciTE under Andrej Linux, but I'm a little confused on Windows. Which do you prefer? GNU Emacs. Runs fine on Unix, Windows, Darwin, etc. -- Randal L. Schwartz -

Re: Flushing Buffers (WAS: recursive search)

2005-12-03 Thread John Doe
John W. Krahn am Samstag, 3. Dezember 2005 15.27: John Doe wrote: The Ghost am Freitag, 2. Dezember 2005 19.30: print $_: ; my @lines=FILE; and close opened files: close FILE or die couldn't close $File::Find::name: $!; print $#lines\n;

Re: Why not to use env (was Re: Perl executable pathname needs to be hardwired?)

2005-12-03 Thread Chris Devers
On Sat, 3 Dec 2005, Randal L. Schwartz wrote: Chris == Chris Devers [EMAIL PROTECTED] writes: Chris My understanding is that the Python idiom is to avoid putting the full Chris path, in favor of something like Chris #!/usr/bin/env python This won't work if env is not in /usr/bin

installing DBD::mysql

2005-12-03 Thread Octavian Rasnita
Hi, I have tried to install DBD::mysql under Linux manually and also using cpan, but the make test command gives the error saying that it can't connect to the server using the socket /var/lib/mysql/mysql.sock. I know that MySQL is not using that socket but /tmp/mysql.sock, but I don't know how

Re: Moving Folder Access denied

2005-12-03 Thread Mulander
Just a brief of what is hapening i have a file with text like this aaa.bbb e:\cme\abc.vws i am splitting this data based on space and want to move the data in e:\cme\abc.vws to e:\cme1\. How many spaces do you have between the filenames ? If more then one adjust your regex in split:

file::find

2005-12-03 Thread robert
Greetings folks! how`s doing? ;) ,, i`ve one question for you. I`m trying to count files on drive using file::find module with latest activestate perl build. I want to achieve same result like running command dir /S from the root, e.g f:\dir /S. Problem is that my script returns less files

bizarre math

2005-12-03 Thread Bryan Harris
I just ran into this today, and have no clue what's going on: % perl -e 'print 10-5.5, \n' 4.5 % perl -e 'print 10-05.5, \n' 55 How does 10 minus 5.5 equal 55? Obviously it's the leading zero, but I can't think of any reason why it should do that... - B -- To unsubscribe, e-mail: [EMAIL

Re: config files

2005-12-03 Thread M. Lewis
Randal L. Schwartz wrote: M == M Lewis [EMAIL PROTECTED] writes: M do '/absolute/path/to/mcr.conf'; M Which defeats my purpose of getting the configuration items out of the M scripts themselves. I don't want the users to have to edit the three M scripts, only the mcr.conf file. If your

Re: bizarre math

2005-12-03 Thread Bryan Harris
I just ran into this today, and have no clue what's going on: % perl -e 'print 10-5.5, \n' 4.5 % perl -e 'print 10-05.5, \n' 55 How does 10 minus 5.5 equal 55? Obviously it's the leading zero, but I can't think of any reason why it should do that... It seems that 05 is taken as