perl module for graphs lines point

2008-11-17 Thread ben perl
Hi , Is there a perl module to plot graphs with lines point. Thanks, -Bandeep

Re: Problem with parsing csv file and writing into two separate files

2008-11-17 Thread Raymond Wan
Hi Lauri, Lauri Nikkinen wrote: I would like to parse a .csv file and write certain records into two separate files. The program below writes the records easily into the csvtmp.csv but the second file is only created with no records written. I cannot see the problem here, the second file is pr

Problem with parsing csv file and writing into two separate files

2008-11-17 Thread Lauri Nikkinen
Hello, I would like to parse a .csv file and write certain records into two separate files. The program below writes the records easily into the csvtmp.csv but the second file is only created with no records written. I cannot see the problem here, the second file is produced easily if the first lo

Re: problem with Net::SSH::Perl

2008-11-17 Thread Chas. Owens
On Mon, Nov 17, 2008 at 13:42, monnappa appaiah <[EMAIL PROTECTED]> wrote: > Hi All, > > I wanted to write a script which could login into the server and > execute a command and return the output for that i used "Net::SSH::Perl" > module > > but when i run the script (i'm running on the win

Re: Two questions about split and map in a cookbook recipe

2008-11-17 Thread John W. Krahn
Telemachus wrote: On Mon Nov 17 2008 @ 10:21, John W. Krahn wrote: Set paragraph mode. while (<>) { Read a paragraph into $_. In your example a paragraph is: " field:value field:value field:value " my @fields = split /^([^:]+):\s*/m; Since there are multiple lines in a parag

Re: Two questions about split and map in a cookbook recipe

2008-11-17 Thread Chas. Owens
On Mon, Nov 17, 2008 at 13:21, John W. Krahn <[EMAIL PROTECTED]> wrote: snip >> push(@Array_of_Records, { map /(.*)/, @fields }); > > Store the fields as a hash at the end of @Array_of_Records. The filter > /(.*)/ ensures that no newlines are included in the keys or values of the > hash. snip

problem with Net::SSH::Perl

2008-11-17 Thread monnappa appaiah
Hi All, I wanted to write a script which could login into the server and execute a command and return the output for that i used "Net::SSH::Perl" module but when i run the script (i'm running on the windows machine) i'm getting this error "The getpwuid function is unimplemented at C:/Pe

Re: Two questions about split and map in a cookbook recipe

2008-11-17 Thread Telemachus
On Mon Nov 17 2008 @ 10:21, John W. Krahn wrote: > Set paragraph mode. > >> while (<>) { > > Read a paragraph into $_. In your example a paragraph is: > > " field:value > field:value > field:value > > " > >> my @fields = split /^([^:]+):\s*/m; > > Since there are multiple lines in a p

Re: Two questions about split and map in a cookbook recipe

2008-11-17 Thread John W. Krahn
Telemachus wrote: Good morning, Hello, I'm using a recipe from The Perl Cookbook (11.10 for anyone browsing at home) to produce a record structure from items in a text file. The text file itself has a simple structure: field:value field:value field:value field:value field:value

Re: can you substitute equation with variable?

2008-11-17 Thread Chas. Owens
On Mon, Nov 17, 2008 at 11:04, Richard Lee <[EMAIL PROTECTED]> wrote: snip > but I am suprised that perl doesn't have neutral equator.. How would you suggest it handle my $boolean = " 123 " magic_smart_compare "123"; string compare is false numeric compare is true both look like numbers to l

Re: algorithm permute

2008-11-17 Thread Jay Savage
On Mon, Nov 17, 2008 at 10:13 AM, Sharan Basappa <[EMAIL PROTECTED]> wrote: >> >> You haven't installed anything. You've downloaded and untarred/ >> gunzipped the source. You still have to run >> perl Makefile.PL >> make >> make test >> make install >> >> That final command will copy the installe

Re: can you substitute equation with variable?

2008-11-17 Thread Richard Lee
Chas. Owens wrote: On Mon, Nov 17, 2008 at 04:47, Richard Lee <[EMAIL PROTECTED]> wrote: but it would only be worthwhile if you used $compare a lot after setting it once; otherwise it would be simpler to just say sub compare { my ($x, $y) = @_; return looks_like_numb

Re: algorithm permute

2008-11-17 Thread Tom Phoenix
On Mon, Nov 17, 2008 at 7:13 AM, Sharan Basappa <[EMAIL PROTECTED]> wrote: > On the 3 rd terminal, it works fine. So, on the third terminal, you can ask it which module it is finding that the others aren't: perldoc -l Algorithm::Permute > I ran "env" and redirected output to a file from 2 t

Two questions about split and map in a cookbook recipe

2008-11-17 Thread Telemachus
Good morning, I'm using a recipe from The Perl Cookbook (11.10 for anyone browsing at home) to produce a record structure from items in a text file. The text file itself has a simple structure: field:value field:value field:value field:value field:value etc. That is, the records are

Re: algorithm permute

2008-11-17 Thread Sharan Basappa
> > You haven't installed anything. You've downloaded and untarred/ > gunzipped the source. You still have to run > perl Makefile.PL > make > make test > make install > > That final command will copy the installed module to the real library > directory. THAT is the path that you need for use lib

Re: can you substitute equation with variable?

2008-11-17 Thread Chas. Owens
On Mon, Nov 17, 2008 at 04:47, Richard Lee <[EMAIL PROTECTED]> wrote: > say something like == or eq .. > > Can you sub them w/ varilable like $unknown ? > > Let me be more specific. > Let's say I don't know what the variable will hold > > I guess I can say something like, > > sub check_unknown {

can you substitute equation with variable?

2008-11-17 Thread Richard Lee
say something like == or eq .. Can you sub them w/ varilable like $unknown ? Let me be more specific. Let's say I don't know what the variable will hold I guess I can say something like, sub check_unknown { my $unknown = shift; ## it's either digits or letters but both will be same