Re: df via rexec

2010-03-17 Thread Jim Gibson
At 6:41 AM +0100 3/18/10, HACKER Nora wrote: Hi list, I want to do a 'df' on a diretory on another machine via 'rexec'. I thought I could do that via the Perl module Filesys::Df, but then I realized that I can't call a function of a module directly because the rexec executes a normal shell comma

df via rexec

2010-03-17 Thread HACKER Nora
Hi list, I want to do a 'df' on a diretory on another machine via 'rexec'. I thought I could do that via the Perl module Filesys::Df, but then I realized that I can't call a function of a module directly because the rexec executes a normal shell command. I would have wanted something like this: u

Re: Replacement in 3GB file

2010-03-17 Thread Ganesh Babu N
Dear Sholmi, /EuclidSymbol is not constant. I will vary based on the font used in the file. Regards, Ganesh On Mon, Mar 15, 2010 at 6:36 PM, Shlomi Fish wrote: > Hi Ganesh! > > First a few notes on your code. > > On Monday 15 Mar 2010 14:10:25 Ganesh Babu N wrote: >> Dear All, >> >> I am using

Re: How to convince the Customer

2010-03-17 Thread Raymond Wan
Hi Parag, Parag Kalra wrote: Now the customer wants to use the framework on a Solaris machine (it has Perl installed - 5.8.4). However that Solaris machine doesn't have DBI module as a result of which I can't use my framework. But it has Oracle client installed using which (sqlplus, sqlldr etc

How to convince the Customer

2010-03-17 Thread Parag Kalra
Hey All, I am facing this situation where I have coded a Perl framework on Windows and its all working fine. The framework mostly uses DBI and ODBC module to connect to both Oracle server, execute SQL queries, fetch Rows etc etc. Now the customer wants to use the framework on a Solaris machine (i

Re: Treatment of Windows paths in Activestate Perl

2010-03-17 Thread Sisyphus
- Original Message - From: "Marilyn Sander" perl tryperl.pl E:\test_downloads H:\no_such_directory D:/whatever argument 0 is E:/test_downloads argument 1 is H:/no_such_directory argument 2 is D:/whatever I can't reproduce this behaviour with any of my ActiveState (or other) build

Treatment of Windows paths in Activestate Perl

2010-03-17 Thread Marilyn Sander
Does anyone have insight into this situation? On one Windows 2003 server system, backslashes in path names in arguments to Perl are getting translated to forward slashes. On other Windows 2003 systems, with the exact same version and build of ActiveState Perl installed, the conversion to forwar

Re: Save to memory temporarily

2010-03-17 Thread raphael()
On Wed, Mar 17, 2010 at 10:09 PM, Shlomi Fish wrote: > Hi raphael()! > > I'll comment on your code below. > > On Wednesday 17 Mar 2010 18:23:29 raphael() wrote: > > On Wed, Mar 17, 2010 at 9:05 PM, Shlomi Fish > wrote: > > > On Wednesday 17 Mar 2010 16:49:01 raphael() wrote: > > > > Hello, > > >

Re: Save to memory temporarily

2010-03-17 Thread Shlomi Fish
Hi raphael()! I'll comment on your code below. On Wednesday 17 Mar 2010 18:23:29 raphael() wrote: > On Wed, Mar 17, 2010 at 9:05 PM, Shlomi Fish wrote: > > On Wednesday 17 Mar 2010 16:49:01 raphael() wrote: > > > Hello, > > > > > > Is there a way to save/store downloaded data (using WWW::Mechan

Re: no lstat happens

2010-03-17 Thread John W. Krahn
Harry Putnam wrote: I've finally gone on around the bend, I guess... I'm not seeing why the script below <./t2> doesn't show the value of $mode when fed by the ls cmd shown: (first, to shows whats here) ls -l *[eo2] -rw-r--r--+ 1 reader reader 5 Mar 16 15:26 one -rwxr-xr-x+ 1 reader re

Re: Freeing Memory

2010-03-17 Thread Uri Guttman
> "h" == hsfrey writes: h> I have a big data file - about 7000 entries, each about 100 bytes. h> I have to search it on the order of 7000 times, so I need to keep it h> in memory. just fyi, that is a tiny data file today. less than 1MB. uri -- Uri Guttman -- u...@stemsystems

Re: Save to memory temporarily

2010-03-17 Thread raphael()
On Wed, Mar 17, 2010 at 9:05 PM, Shlomi Fish wrote: > On Wednesday 17 Mar 2010 16:49:01 raphael() wrote: > > Hello, > > > > Is there a way to save/store downloaded data (using WWW::Mechanize) in > > memory (temporarily) > > rather than writing it to disk. Like store 10MB in memory and then flush

Re: getting input without hitting return

2010-03-17 Thread Raymond Wan
Hi Greg, Greg wrote: I have a script, where a user can choose between different options (add user (U), add item (I), search (S)). I want the user to hit either U, I or S. However, right now, he needs to hit return as well. Is there a way to get input without hitting return? Take a look at

Re: no lstat happens

2010-03-17 Thread Raymond Wan
Hi Harry, Harry Putnam wrote: Raymond Wan wrote: The other option is to *not* use ls and get your script to stat the file directly (NB: I guess you want stat and not lstat?). In this case, you should get a list of files in the directory, and then run stat on each one. If you do this (which

Re: getting input without hitting return

2010-03-17 Thread John W. Krahn
Greg wrote: Hi everybody, Hello, I have a script, where a user can choose between different options (add user (U), add item (I), search (S)). I want the user to hit either U, I or S. However, right now, he needs to hit return as well. Is there a way to get input without hitting return? pe

getting input without hitting return

2010-03-17 Thread Greg
Hi everybody, I have a script, where a user can choose between different options (add user (U), add item (I), search (S)). I want the user to hit either U, I or S. However, right now, he needs to hit return as well. Is there a way to get input without hitting return? I was thinking about a l

Re: Freeing Memory

2010-03-17 Thread John W. Krahn
hsfrey wrote: I have a big data file - about 7000 entries, each about 100 bytes. 700,000 bytes is *not* a big file these days. I have to search it on the order of 7000 times, so I need to keep it in memory. As I search, some items no longer need to be searched, but they still need to be sav

Re: Save to memory temporarily

2010-03-17 Thread Shlomi Fish
On Wednesday 17 Mar 2010 16:49:01 raphael() wrote: > Hello, > > Is there a way to save/store downloaded data (using WWW::Mechanize) in > memory (temporarily) > rather than writing it to disk. Like store 10MB in memory and then flush it > to the hard disk when data reaches 10MB. Yes, standard Perl

Re: Any Good SCM tool to manage Perl Code locally

2010-03-17 Thread Eric Veith1
Parag Kalra wrote on 03/16/2010 07:44:43 AM: > Just couple of questions - How can I make my code readonly using Git > such that it can be edited only when it is checked out. The only thing that comes near to what you describe is a git repo created with --bare. It's one that you can push to, and

Re: Freeing Memory

2010-03-17 Thread Shawn H Corey
hsfrey wrote: > Does anyone have any suggestion about how I could retrieve the lost > memory? You know it's really, really difficult to give meaningful advice without seeing the code. -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communicati

Save to memory temporarily

2010-03-17 Thread raphael()
Hello, Is there a way to save/store downloaded data (using WWW::Mechanize) in memory (temporarily) rather than writing it to disk. Like store 10MB in memory and then flush it to the hard disk when data reaches 10MB. Its just a curiosity since utorrent and jdownloader (Java) do this (though I cann

Re: no lstat happens

2010-03-17 Thread Harry Putnam
Raymond Wan writes: > Hi Harry, > > > Raymond Wan wrote: >> The other option is to *not* use ls and get your script to stat the >> file directly (NB: I guess you want stat and not lstat?). In this >> case, you should get a list of files in the directory, and then run >> stat on each one. If yo

Re: New on http://perl-begin.org/ - more topical pages and pages for Perl uses

2010-03-17 Thread raphael()
On Tue, Mar 16, 2010 at 6:49 PM, Shlomi Fish wrote: > Hi all! > > There are new additions to http://perl-begin.org/ , the site for Perl > Beginners. Here is a summary of them: > > <<< > > ==16-March-2010: Topical and Uses Pages== > > We added a [http://perl-begin.org/uses/email/ a page about usin

Re: no lstat happens

2010-03-17 Thread Harry Putnam
Shlomi Fish writes: >> Script content >> cat t2 >> #!/usr//bin/perl >> use strict; >> use warnings; >> my $mode; >> while(<>){ >>chomp; >>$mode = (lstat( $_))[2]; >>print "$_: " . $mode . "\n"; >> } > > This script: > > > #!/usr//bin/perl > > use strict; > use warnings; >

Freeing Memory

2010-03-17 Thread hsfrey
I have a big data file - about 7000 entries, each about 100 bytes. I have to search it on the order of 7000 times, so I need to keep it in memory. As I search, some items no longer need to be searched, but they still need to be saved. To save search time, I store the data as a set of parallel has

Re: no lstat happens

2010-03-17 Thread Raymond Wan
Hi Harry, Raymond Wan wrote: The other option is to *not* use ls and get your script to stat the file directly (NB: I guess you want stat and not lstat?). In this case, you should get a list of files in the directory, and then run stat on each one. If you do this (which is perhaps the bet

Re: no lstat happens

2010-03-17 Thread Raymond Wan
Hi Harry, Harry Putnam wrote: ls *[eo2] | ./t2 reader > ls *[eo2] | ./t2 ... Script content cat t2 #!/usr//bin/perl use strict; use warnings; my $mode; while(<>){ chomp; $mode = (lstat( $_))[2]; print "$_: " . $mode . "\n"; } There are at least two ways of doing wha

Re: no lstat happens

2010-03-17 Thread Shlomi Fish
On Tuesday 16 Mar 2010 23:31:23 Harry Putnam wrote: > I've finally gone on around the bend, I guess... I'm not seeing why the > script below <./t2> doesn't show the value of $mode when fed by > the ls cmd shown: > > (first, to shows whats here) > >ls -l *[eo2] > -rw-r--r--+ 1 reader reader

Re: Lingua::Stem 0.83 module installation problem

2010-03-17 Thread Dermot
On 17 March 2010 02:13, Doug Cacialli wrote: > On Tue, Mar 16, 2010 at 4:36 AM, Dermot wrote: >> On 16 March 2010 00:29, Doug Cacialli wrote: >>> Hello list, >> >>> >>> Building Lingua-Stem >>> Can't locate Lingua/Stem.pm in @INC (@INC contains: >>> C:/strawberry/perl/lib C:strawberry/perl/site/