copy using perl on windows

2005-12-16 Thread Umesh T G
I want to copy few files from a source directory to a destination directory my array contains all the source file names like this ..\..\..\AlgSource\ISA\C64x\asm\idct_8x8_c64xplus_h.asm ..\..\..\AlgSource\ISA\C64x\asm\jpegdec_ti_vld_n_mcu.asm ..\..\..\AlgSource\ISA\C64x\C\byte_unstuff.c

Re: Inserting line at a specific point

2005-12-16 Thread Mulander
2005/12/16, MARG [EMAIL PROTECTED]: Hi, I want to insert these two lines in Apache's httpd.conf: LoadModule python_module modules/mod_python.so AddModule mod_python.c just right after the line LoadModule php5_module modules/libphp5.so and not at the end of the file (with a simple echo

RE: DBI problem

2005-12-16 Thread Charles K. Clarkson
john mailto:[EMAIL PROTECTED] wrote: : Thanks, Charles, for your suggestions. I think I've incorporated : most of them. You're welcome. : Your regex is a lot more practical than what I was using. I wouldn't have used it a year ago. Perhaps I'm getting better. :) : Here is the

Freeze CPAN module version for just one script on system?

2005-12-16 Thread pbdgny
Hello, I would like to use a complex CPAN module group that is currently under active revision. (Task::Catalyst) Is there a way to use the cpan shell to install a local version of the module for just this application so I don't have to worry about things breaking if the main CPAN library install

: shared

2005-12-16 Thread Beast
I saw code which has something like : my $foo : shared = ''; my @bar : shared = (); ... What is that means? -- --beast -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

RE: copy using perl on windows

2005-12-16 Thread Charles K. Clarkson
Umesh T G mailto:[EMAIL PROTECTED] wrote: : It is not copying the files, though there is no error printed on : screen. :( It looks like you are not using warnings and strict. That pretty much stops most errors from going to the screen. Your problem *may* be in @src. In perl, the file

Re: : shared

2005-12-16 Thread Jeff Pang
Do you mean something as below? my $foo::shared = ''; my @bar::shared = (); I don't know what you writted too. -Original Message- From: Beast [EMAIL PROTECTED] Sent: Dec 16, 2005 5:00 AM To: beginners@perl.org Subject: : shared I saw code which has something like : my $foo : shared

Re: Inserting line at a specific point

2005-12-16 Thread John W. Krahn
MARG wrote: Hi, Hello, I want to insert these two lines in Apache's httpd.conf: LoadModule python_module modules/mod_python.so AddModule mod_python.c just right after the line LoadModule php5_module modules/libphp5.so and not at the end of the file (with a simple echo AddModule

Re: : shared

2005-12-16 Thread John W. Krahn
Beast wrote: I saw code which has something like : my $foo : shared = ''; my @bar : shared = (); ... What is that means? perldoc attributes perldoc perlthrtut perldoc perlsub John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: : shared

2005-12-16 Thread Beast
Jeff Pang wrote: Do you mean something as below? my $foo::shared = ''; my @bar::shared = (); No. Take a lokk at this code: http://tobyinkster.co.uk/Software/linux/jukebox/jukebox-2.19b.pl ... # Shared variables for passing info around. my @queue : shared = ();# queue my

Re: Freeze CPAN module version for just one script on system?

2005-12-16 Thread Mohammed Shameer
Hi, I would have done this. 1) download the module source and dependencies and untar 2) perl Makefile.pl 3) Modify PERLPREFIX,SITEPREFIX,VENDORPREFIX in Makefile to a local folder 4) while starting the application set PERLLIB environment variable to include the folder. there might be

Re: A question about modules

2005-12-16 Thread vmalik
It is okay to do something like that. However, you should not use the package declaration on the top. If you do that, you will have to use the Exporter module to export your subroutine names to your script when you say use DBConn; Quoting Robert [EMAIL PROTECTED]: I have broken out my DB

sub args as pointers or values?

2005-12-16 Thread Bryan R Harris
I remember from my C++ class that when you pass arguments to subroutines you can pass them either as a pointer to the real variable (so you modify the original if you change it), or as a copy (which you can change all you want and not affect the original). Is there a perl equivalent of both of

Re: sub args as pointers or values?

2005-12-16 Thread Wiggins d'Anconia
Bryan R Harris wrote: I remember from my C++ class that when you pass arguments to subroutines you can pass them either as a pointer to the real variable (so you modify the original if you change it), or as a copy (which you can change all you want and not affect the original). Is there a

Re: sub args as pointers or values?

2005-12-16 Thread Chris Devers
On Fri, 16 Dec 2005, Bryan R Harris wrote: I remember from my C++ class that when you pass arguments to subroutines you can pass them either as a pointer to the real variable (so you modify the original if you change it), or as a copy (which you can change all you want and not affect the

Re: sub args as pointers or values?

2005-12-16 Thread Bryan R Harris
Thanks, Chris and Wiggins! - Bryan On Fri, 16 Dec 2005, Bryan R Harris wrote: I remember from my C++ class that when you pass arguments to subroutines you can pass them either as a pointer to the real variable (so you modify the original if you change it), or as a copy (which you can

press key to external program

2005-12-16 Thread Ing. Branislav Gerzo
Hi all, I unpack some files in my script with external unpacker (unrar, unzip, unarj, unace...). But some files are passworded, to continue in script I have to press some key. It is some easy way how to do this ? I am think about eval and alarm... /brano -- To unsubscribe, e-mail: [EMAIL

one odd question

2005-12-16 Thread Gomez, Juan
Hello guys!! I have to ask you a very odd question I am working on a project that involves VRML (yes I know) these project what it does is that if you give him a board file (like a CAD file) import a file from a server and this project what it does is that it gives you a 3D view of the

Sockets recv question

2005-12-16 Thread Scott
I am working on a sockets based script. My question is what if the length of the recv is likely to change, but you need the following recv lines not to get corrupted? Example $client-recv($bkserv,128); $client-recv($bkuser,128); $client-recv($dumppath,128); $client-recv($dumpname,128); Any one

Re: one odd question

2005-12-16 Thread vmalik
There is a VRML-Perl module. You can go to CPAN (http://www.cpan.org/), and look for it. Vishal Quoting Gomez, Juan [EMAIL PROTECTED]: Hello guys!! I have to ask you a very odd question I am working on a project that involves VRML (yes I know) these project what it does is that if

Re: press key to external program

2005-12-16 Thread Chris Devers
On Fri, 16 Dec 2005, Ing. Branislav Gerzo wrote: I unpack some files in my script with external unpacker (unrar, unzip, unarj, unace...). But some files are passworded, to continue in script I have to press some key. It is some easy way how to do this ? If you have to interact with a

Re: Freeze CPAN module version for just one script on system?

2005-12-16 Thread pbdgny
Hi, On 12/16/05, Mohammed Shameer [EMAIL PROTECTED] wrote: Hi, I would have done this. 1) download the module source and dependencies and untar 2) perl Makefile.pl 3) Modify PERLPREFIX,SITEPREFIX,VENDORPREFIX in Makefile to a local folder 4) while starting the application set PERLLIB

Constant Hash problem

2005-12-16 Thread Kevin Old
Hello everyone, I'm trying to define a constant hash and have the following: use constant STOPWORDS = map { lc $_ , 1 } qw(a about above across adj after); I do not get a hash from this. This does work, however: my %stopwords = map { lc $_ , 1 } qw(a about above across adj after); use

Re: Freeze CPAN module version for just one script on system?

2005-12-16 Thread Xavier Noria
On Dec 16, 2005, at 20:36, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hmm... is there a way to do this using the CPAN shell while still having any dependency outside certain marked namespaces satisfied from the server's main Perl installation? ( Rather than having a local install of every

Re: Constant Hash problem

2005-12-16 Thread Wiggins d'Anconia
Kevin Old wrote: Hello everyone, I'm trying to define a constant hash and have the following: use constant STOPWORDS = map { lc $_ , 1 } qw(a about above across adj after); I do not get a hash from this. This does work, however: my %stopwords = map { lc $_ , 1 } qw(a about above

Subst string

2005-12-16 Thread MARG
Hi, I'm trying to subst the string: # Include conf/extra/httpd-ssl.conf for Include conf/extra/httpd-ssl.conf with the command: perl -pi~ -e 's/# Include conf/extra/httpd-ssl.conf/Include conf/extra/httpd-ssl.conf/' /usr/local/httpd/conf/httpd.conf but i get an error. I've used this before

Re: Subst string

2005-12-16 Thread Wiggins d'Anconia
MARG wrote: Hi, I'm trying to subst the string: # Include conf/extra/httpd-ssl.conf for Include conf/extra/httpd-ssl.conf with the command: perl -pi~ -e 's/# Include conf/extra/httpd-ssl.conf/Include conf/extra/httpd-ssl.conf/' /usr/local/httpd/conf/httpd.conf but i get an error.

Re: Constant Hash problem

2005-12-16 Thread John W. Krahn
Kevin Old wrote: Hello everyone, Hello, I'm trying to define a constant hash and have the following: use constant STOPWORDS = map { lc $_ , 1 } qw(a about above across adj after); I do not get a hash from this. You are defining STOPWORDS as a list. This does work, however: my

Re: A question about modules

2005-12-16 Thread Robert
I simply use: my $dbh = DBConn::db1(); It does the right connection (i.e. subroutine) from the DBConn package and I didn't use Exporter. I should also mention that DBConn is in the same folder and the calling script so maybe that makes a difference. I am probably going to go back and do a

Re: Constant Hash problem

2005-12-16 Thread Kevin Old
On 12/16/05, John W. Krahn [EMAIL PROTECTED] wrote: Kevin Old wrote: Hello everyone, Hello, I'm trying to define a constant hash and have the following: use constant STOPWORDS = map { lc $_ , 1 } qw(a about above across adj after); I do not get a hash from this. You are

Re: Constant Hash problem

2005-12-16 Thread John W. Krahn
Kevin Old wrote: On 12/16/05, John W. Krahn [EMAIL PROTECTED] wrote: Kevin Old wrote: I'm trying to define a constant hash and have the following: use constant STOPWORDS = map { lc $_ , 1 } qw(a about above across adj after); I do not get a hash from this. You are defining STOPWORDS as a