Re: Using Perl modules without installing them

2001-06-25 Thread Sisyphus
> Hi! > > I tried this one and worked just fine in my PC. But when I ru it on the > remote server (my hosting provider server) it does not return anything. Just > "script produced no output ". Like it didn't know where GD.pm is located. > > My perl version is 5.006 and the remote server version

Re: module installs 0 length files

2001-06-25 Thread Sisyphus
Hi Robert, > I'm having some problems installing Tk.pm on a Windows 2K machine > using Perl 626 > ppm installs all the files but they are all zero length. > Any Ideas how to get around this? I've tried downloading the zip file > and doing a local ppm but it still fails. > ___

Re: Problems reading Excel date format

2001-06-25 Thread Sisyphus
- Original Message - From: "rotaiv" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 26, 2001 1:48 AM Subject: Re: Problems reading Excel date format > At 06/25/2001 11:08 AM, Sisyphus wrote: > > >It's a scalar reference. Assuming this is the value held by $cell, to > >d

RE: regex problem

2001-06-25 Thread Jaime Teng
>> # >> 1 $SESSION{$port}{file} = new IO::File "> 2 binmode $SESSION{$port}{file}; >> . >> . >> . >> 10 my $data; >> 11 if ($SESSION{$port}{file}->read($data,1)) >> 12 { >> 13 $data =~ s/\cM\cJ\.\cM\cJ/\cM\cJ \cM\cJ/gs; >> 14 >> 15 $SESSION{$

RE: printing output to a file

2001-06-25 Thread Samuel Kaufman
Peter (and others who have sent a fix), thank you very much. Sam >>> Peter Guzis <[EMAIL PROTECTED]> 06/25/01 07:31PM >>> 1. write access should be explicitly specified open(CAREWEBOUT, "$CareWebOut"); --> open(CAREWEBOUT, ">$CareWebOut"); 2. read access should be too, although it wi

RE: printing output to a file

2001-06-25 Thread Peter Guzis
1. write access should be explicitly specified open(CAREWEBOUT, "$CareWebOut"); --> open(CAREWEBOUT, ">$CareWebOut"); 2. read access should be too, although it will work as is open(CAREWEBFILE, "$CareWebFile") || die "SORRY, CAN'T FIND $CareWebFile\n"; --> open(CAREWEBFILE, "<$CareWebFile") || d

RE: Age of a file in days . . . .

2001-06-25 Thread Steve Howard
Title: Re: Age of a file in days . . . . If you're asking for a method of doing it, might I suggest the delta_date function from the DATE::CALC module. I've jumped through hoops before writing subroutines to deal with possibilities when using minutes or days of last day of month, year

RE: Maths - ratios? scales? mapping map to map

2001-06-25 Thread Lee Goddard
First - thanks for the response. > I have done some graduate work in mathematics and you don't quite have > enough information to solve this problem -- even if you can effectively > assume that the world is flat and rectangular in shape. From the way you > describe the problem, I think you are

RE: Maths - ratios? scales? mapping map to map

2001-06-25 Thread Lee Goddard
> My two cents: I missed the original post, but I suggest you have TWO > subroutines (preferably within a module). > > ll2xy (lat/lon to x/y) > > and > > xy2ll (x/y to lat/lon) Exactly what I did in the end! > Of course, each one would accept a string of arguments such as projection, > scal

RE: Randomly selecting characters from a list

2001-06-25 Thread Richard A. Evans
Actually that's probably about as good as any other way. Quoting from the Perl Cookbook: "Making random numbers is hard." Also from the Perl Cookbook, here is a way to generate a 10 character string 'randomly': @chars = ( "A" .. "Z", "a" .. "z", 0 .. 9 ); $password = join( "", @chars[ map { ra

RE: Randomly selecting characters from a list

2001-06-25 Thread Peter Guzis
You could try: use strict; my @chars = split //, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; my $out; rand (time); # or some better seed # allow duplicate characters for (1..10) { $out .= $chars[int (rand scalar @chars)]; } # unique characters for (1..10) { my $idx = int (rand scalar @chars

printing output to a file

2001-06-25 Thread Samuel Kaufman
This is an embarrassingly simple problem, but I can't seem to solve it in Win 95. All I want to do is to send the lines meeting a condition to a (user-specified) output file. This is trivial in Unix, but I can't seem to get DOS/Windows to do it. No matter what I try, the lines go to the scre

Re: Randomly selecting characters from a list

2001-06-25 Thread Chris Devers
At 04:08 PM 2001.06.25 -0700, Roee Rubin wrote: >I need to randomly select 10 characters Can the characters repeat? If so then it's easy -- just select one from the set randomly ten times. If they have to be unique -- that is, if you need to have a random sequence or permutation -- then it's a

Randomly selecting characters from a list

2001-06-25 Thread Roee Rubin
Hello, I need to randomly select 10 characters from a character list and am having some trouble. One way I thought of approaching this is getting a random number (1-38) and selecting the character in that location of the string. There must be better ways of approaching this. Any help would be ap

RE: Running remote perl scripts

2001-06-25 Thread Joe Schell
Can you run it from your NT box from the command line right now?  Can you run any exe from the unix box on your NT right now?  If yes, then that is how you do it from perl.  If you can't then you need to solve that problem first before figuring out how to do it from a perl script.

RE: Maths - ratios? scales? mapping map to map

2001-06-25 Thread Dunnigan,Jack [Edm]
My two cents: I missed the original post, but I suggest you have TWO subroutines (preferably within a module). ll2xy (lat/lon to x/y) and xy2ll (x/y to lat/lon) Of course, each one would accept a string of arguments such as projection, scale, reference lat/longs, map corners, etc, etc. When

Re: Maths - ratios? scales? mapping map to map

2001-06-25 Thread Ben Wheeler
I have done some graduate work in mathematics and you don't quite have enough information to solve this problem -- even if you can effectively assume that the world is flat and rectangular in shape. From the way you describe the problem, I think you are making these assumptions anyway and in that

(no subject)

2001-06-25 Thread Nidhi
Hi Friends, do anyone of u have he email programs to sent attachments(more than one) from perl program using Mail::Sendmail module on linux platform.   Server is qmail server.   Thanks..  

Re: Problem with filetest -x _ on Win2k AS Perl build 626

2001-06-25 Thread Sisyphus
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 5:36 PM Subject: Problem with filetest -x _ on Win2k AS Perl build 626 I was running Pod::Find::pod_find to list pod-containing files in C:/p

Problem with filetest -x _ on Win2k AS Perl build 626

2001-06-25 Thread Rudif
I was running Pod::Find::pod_find to list pod-containing files in C:/perl/bin and I expected to see several .bat files in the list. But there were none, although several of them contain pod (e.g. pod2html.bat). I looked into Pod::Find, drilled down into _check_and_extract_name() and I