PDF->Palm, nearly done

2001-05-16 Thread David A. Desrosiers
This may not be specifically geared towards beginners, but it shouldn't be too hard a task to throw me some ideas or code snippets, so here goes: Adobe has a new application and Palm-side reader which allows me to "convert" and install PDF files onto my Palm device. This is a Win

RE: Using SSL and Perl to Gather Process Information

2001-05-16 Thread King, Jason
Ken Hammer writes .. > I need to write a perl script that will gather system information >from remote machines. I must communicate to the remote machines >using SSL. I'm thinking I can use the Socket method to accomplish >this, but I have had little luck in figuring it out. > > Can anyone point

Re: newbie question

2001-05-16 Thread little
Exactly! I booted into a command line screen and not the GUI logon. I prefered CL because I didn't need to load a 16M color background and 50 icons to inititate a talk session or read mail in Pine. :-) .. Pj On 16 May 2001, at 17:21, Brett W. McCoy wrote: > > I've never seen a console screen

RE: :Cookie not setting cookie with Internet Explorer

2001-05-16 Thread King, Jason
Fernando Munoz writes .. >You are probably right, but it works!.. the fact of the problem >however, is that the cookie is not set on Internet Explorer, and I can >not figure it out. so .. you say that I'm probably right .. so it's probably correct that Netscape is executing a different program t

RE: :Cookie not setting cookie with Internet Explorer

2001-05-16 Thread Fernando Munoz
You are probably right, but it works!.. the fact of the problem however, is that the cookie is not set on Internet Explorer, and I can not figure it out. -Original Message- From: King, Jason [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 6:42 PM To: [EMAIL PROTECTED] Cc: Fernand

RE: :Cookie not setting cookie with Internet Explorer

2001-05-16 Thread King, Jason
Fernando Munoz writes .. >I'm in need for a little help. I'm trying to make an script to create a >cookie and it does just fine with Netscape (creates it and recovers it) >but It does not work with IE. here is the code I'm using : if it seriously works in Netscape then there's something serious

RE: passing part of an array to a function

2001-05-16 Thread King, Jason
Peter Scott writes .. >At 10:44 AM 5/17/01 +1000, King, Jason wrote: >>so here's the thing .. Perl doesn't have pointers .. only references >>.. so you can't have a 1500 element array and grab a reference to the >>700th element > >Oh yes you can: > >my @foo = qw(three blind mice); >my $elemref =

CGI::Cookie not setting cookie with Internet Explorer

2001-05-16 Thread Fernando Munoz
Hey guys! I'm in need for a little help. I'm trying to make an script to create a cookie and it does just fine with Netscape (creates it and recovers it) but It does not work with IE. here is the code I'm using : . . . use CGI; use CGI::Cookie; $q = new CGI; %cookies= fetch CGI::Cookie; $code

RE: passing part of an array to a function

2001-05-16 Thread Peter Scott
At 10:44 AM 5/17/01 +1000, King, Jason wrote: >so here's the thing .. Perl doesn't have pointers .. only references .. so >you can't have a 1500 element array and grab a reference to the 700th >element Oh yes you can: my @foo = qw(three blind mice); my $elemref = \$foo[2]; > .. because referen

RE: passing part of an array to a function

2001-05-16 Thread King, Jason
Gary wrote .. &file_control(\@lines[10..36]); # pass pointer to array elements I just wanted to add something for those that are interested in what the above actually does .. let's use an example @foo = qw/a b c d e f g h i j/; then we do this $bar = \@foo[3..6]; what it does is cr

RE: passing part of an array to a function

2001-05-16 Thread King, Jason
Gary writes .. >The whole point of using references was so that I didn't want to keep >copying array slices. This script will be handling nearly 1500 program >source files totalling almost 750k lines of code. > >Any further help would be appreciated. so here's the thing

RE: Upgrading perl problems ?

2001-05-16 Thread King, Jason
Anshu Anshu writes .. > I have one small doubts and I want to share with you to make sure. > >I was using old version of perl5 and couple of scripts were using >DBD, DBI, Time modules. Recently I did upgrade the perl5 version >5.005_03 (with Sun package ). Will upgarding the perl version will >br

RE: #!/usr/local/bin/perl

2001-05-16 Thread King, Jason
Jos Boumans writes .. >Actually, its something YOU need to tell your server, so it knows where >perl is > >the #! is called a shebang and basicly tells your computer where to >find perl > >an example > >#!c:\perl\bin\perl is what you should type if you installed perl on >a wintendo in c:\perl (bi

Re: passing part of an array to a function

2001-05-16 Thread Gary Stainburn
The whole point of using references was so that I didn't want to keep copying array slices. This script will be handling nearly 1500 program source files totalling almost 750k lines of code. Any further help would be appreciated. Gary On Tuesday 15 May 2001 5:32 pm, Jos Boumans wrote: > O

Re: Array Question

2001-05-16 Thread Jeff Pinyan
On May 16, jane doe said: >How do I remove duplicate items from an array? I apologize for being a >"newbie". :) Please read 'perldoc -q duplicate' or 'perldoc -q unique'. You can see these answers in Perl FAQ #4, online at http://www.perldoc.org/, or on your computer via the 'perldoc' command.

Array Question

2001-05-16 Thread jane doe
Hi All, How do I remove duplicate items from an array? I apologize for being a "newbie". :) Thanks, JD _ Get your FREE download of MSN Explorer at http://explorer.msn.com

Re: Simple Matrix Question

2001-05-16 Thread Peter Scott
At 11:13 PM 5/16/01 +0200, Paul Johnson wrote: >On Wed, May 16, 2001 at 11:34:26AM -0700, Peter Scott wrote: > > At 12:32 AM 5/17/01 +0500, Tirthankar C.P wrote: > > >What is the simplest way to read in a matrix, say > > > > my @matrix; > > while (<>) { > >push @matrix, [ split ]; > > } > >Wit

Re: have you seen this before?

2001-05-16 Thread Jos I Boumans
basicly because of the path: /pub/perl-cgi/whatever is a linux path, not a wintendo path so you REALLY want to check that regards, Jos - Original Message - From: "Kevin Williams" <[EMAIL PROTECTED]> To: "Jos Boumans" <[EMAIL PROTECTED]> Cc: "perl" <[EMAIL PROTECTED]> Sent: Wednesda

date compare question

2001-05-16 Thread Erena Langley
Hi, Right now I have: sub add{ my($htmldata) = loadfile($investorfile); my($code) = time; if ($read{'day'} eq ''){ $date = "$read{'month'} $read{'year'}"; } else { $date = "$read{'month'} $read{'day'}, $read{'year'}"; }

Re: special variables

2001-05-16 Thread Brett W. McCoy
On Wed, 16 May 2001, Liger-dc wrote: > are the variables $1 and $2 special variables? and if > so what do they do? Yes, they refer to parenthesised expressions in a regular expression: /(.*):(\d)/ $1 would be whatever matched .* $2 would be whatever matched \d Please see the perlre documentat

Re: newbie question

2001-05-16 Thread Brett W. McCoy
On Wed, 16 May 2001 [EMAIL PROTECTED] wrote: > Oh sure Perl and html are different. For practical purposes Perl is > universal while html is a faux language created expressly for > the internet. Can you imagine ssh in html? I wouldn't say it's a faux language any more than LaTeX is a faux langua

Re: Simple Matrix Question

2001-05-16 Thread Paul Johnson
On Wed, May 16, 2001 at 11:34:26AM -0700, Peter Scott wrote: > At 12:32 AM 5/17/01 +0500, Tirthankar C.P wrote: > >What is the simplest way to read in a matrix, say > > my @matrix; > while (<>) { >push @matrix, [ split ]; > } Without wishing to turn this into FWP (too much), and noting the r

RE: serching system for certain file sizes then e-mail.

2001-05-16 Thread Peter Cornelius
>I am trying to writ a script that would search a system for certain file >sizes and if so e-mail me. check out File::Find on cpan. You can do something like... use File::Find; sub checkSize { push @files, $_ if (-s == $specialSize); } find (\&checkSize, @dirs); if (defined @files

Re: foo bar? -Reply

2001-05-16 Thread Rod Suter
Actually, the American military acronym 'fubar' goes back at least to World War II. The use of 'foo' and 'bar' as metasyntactic variables probably dates to the the lisp hackers at the MIT AI lab in the 50's or 60's , before unix. Foo and bar function like 'x' or 'n' in the traditional mathe

Re: Spreadsheet::writeexcel HELP needed!

2001-05-16 Thread Carl Rogers
This worked for me... I found it in a book (so I'm not sure what happens and exactly why) while looking how to read from Excel workbooks. (First thing I need to do is upgrade my version of Perl, then I'll try the module you refer to below. Anyway, give this a try::: use Win32; use OLE; $exce

serching system for certain file sizes then e-mail.

2001-05-16 Thread Chris Bourne
I am trying to writ a script that would search a system for certain file sizes and if so e-mail me. Something like this. Thanks [EMAIL PROTECTED] #!/usr/bin/perl -w if { qx(find \ -size +1c -print > /root/big_files | e-mail me) else

Re: special variables

2001-05-16 Thread Jeff Pinyan
On May 16, Liger-dc said: >are the variables $1 and $2 special variables? and if >so what do they do? Read perldoc perlvar: $ Contains the subpattern from the corresponding set of parentheses in the last pattern matched, not counting patterns matched

special variables

2001-05-16 Thread Liger-dc
are the variables $1 and $2 special variables? and if so what do they do? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/

Using SSL and Perl to Gather Process Information

2001-05-16 Thread Ken Hammer
I need to write a perl script that will gather system information from remote machines. I must communicate to the remote machines using SSL. I'm thinking I can use the Socket method to accomplish this, but I have had little luck in figuring it out. Can anyone point me in the right direction?

Spreadsheet::writeexcel HELP needed!

2001-05-16 Thread Chris Tréfois
Hello, And here's already my first question. I have just heard about the module Spreadsheet::WriteExcel for ActivePerl And I immediately installed it. Everything went good until I figured out the following problem: I can create a new Excell workbook, but how can I modify it later on?? I have hea

Problems with EOF marker

2001-05-16 Thread Craig Moynes/Markham/IBM
I am reading in a logfile, writing the records that are to be pruned from the top to an archived file. I then open a temp file store the modification time of the logfile and write the remainder of the log to the tempfile. Then I check the current modification time of the logfile if it has chang

Re: System call problem

2001-05-16 Thread Peter Scott
At 11:32 AM 5/16/01 -0600, Scott Burks wrote: >I have a script that has the following two lines: > >system("echo find /OPERATIONS/system_cleanup/logs -name \"'log.*'\" >-mtime +30 -exec rm {} '\\;' '>> $log_file 2>&1'"); > >system("find /OPERATIONS/system_cleanup/logs -name \"'log.*'\" -mtime >+30

System call problem

2001-05-16 Thread Scott Burks
I have a script that has the following two lines: system("echo find /OPERATIONS/system_cleanup/logs -name \"'log.*'\" -mtime +30 -exec rm {} '\\;' '>> $log_file 2>&1'"); system("find /OPERATIONS/system_cleanup/logs -name \"'log.*'\" -mtime +30 -exec rm {} '\\;' '>> $log_file 2>&1'"); The first

Re: Simple Matrix Question

2001-05-16 Thread Peter Scott
At 12:32 AM 5/17/01 +0500, Tirthankar C.P wrote: >What is the simplest way to read in a matrix, say > > >19911231 12200 4274 > 19921231 12205 7822 > 19931231 3313 8208 > 19941231 2362 12292 > 19951231 4348 11673 > 19961231 11751 14255 >19971231 6318 12339 >19981231 14901 11530 >19991231 373

Simple Matrix Question

2001-05-16 Thread Tirthankar C.P
What is the simplest way to read in a matrix, say 19911231 12200 4274 19921231 12205 7822 19931231 3313 8208 19941231 2362 12292 19951231 4348 11673 19961231 11751 14255 19971231 6318 12339 19981231 14901 11530 19991231 373 17353 in perl? I just know that the matrix has to have three

Re: Sorting a Two Dimensional Array

2001-05-16 Thread M.W. Koskamp
- Original Message - From: Matt Noel <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 7:05 PM Subject: Sorting a Two Dimensional Array (...)> I have a simple two-dimensional array, call it @Weights. I think of the > first index as being the Row index and the se

Re: newbie question

2001-05-16 Thread little
Oh sure Perl and html are different. For practical purposes Perl is universal while html is a faux language created expressly for the internet. Can you imagine ssh in html? I've never seen a console screen blanker, but I am comfortable in a console window and prefer it to GUI; my knowledge of

build problem with dmake

2001-05-16 Thread Greg Barsh
Can someone help with what is probably a trivial build problem? I am trying to use dmake and the Borland free commandline compiler (5.5) with perl 5.6.1 source on a win2K box, but dmake appears to exit (very) prematurely, perhaps without seeing the compiler. With makefile.mk settings recommend

Re: Instance variables vs parameter passing

2001-05-16 Thread Paul
--- Craig Moynes/Markham/IBM <[EMAIL PROTECTED]> wrote: > Is it acceptable practice to use instance methods that access > instance variables (essentially global variables from a pure look of > the code) or is it better to pass in a slew of variables to a function > for ease-of-reusability later on

Re: Sorting a Two Dimensional Array

2001-05-16 Thread Paul
--- Jeff Pinyan <[EMAIL PROTECTED]> wrote: > On May 16, Paul said: > > >"or" also short circuits, and some consider it more readable, but it > >(and the "and" operator) always return(s) a boolean value, while || > >(and &&) return the value of the first true expression. > > > > $a or $b # retur

Re: Sorting a Two Dimensional Array

2001-05-16 Thread Paul
For a variable number of second-dimension elements, try: my @sorted = sort { my($ndx,$ret) = (0,0); while(defined($a->[$ndx]) and defined($b->[$ndx])) { last if $ret = ($a->[$ndx] <=> $b->[$ndx++]); } $ret; } @Weights; This keeps comparing elements fro

Re: Instance variables vs parameter passing

2001-05-16 Thread Brett W. McCoy
On Wed, 16 May 2001, Craig Moynes/Markham/IBM wrote: > Some of you may remember hearing about the logfile pruning/archiving tool I > was working on (with the date parsing from the record and second > calculations etc). > > I am wondering about the 'perl way' or using variables. I have created a

Re: Instance variables vs parameter passing

2001-05-16 Thread Peter Scott
At 11:20 AM 5/16/01 -0400, Craig Moynes/Markham/IBM wrote: >I am wondering about the 'perl way' or using variables. I have created a >class for a generic 'logfile'. I then have a series of instance variables >such as the name of the logfile, the record seperator regular expression, a >series of

Re: ppd file?

2001-05-16 Thread Peter Scott
At 03:51 PM 5/16/01 +0300, kosta wrote: >Hello, > >while trying to install some modules via ppm (in WindowsNT), it sometimes >gives me such an error message: > >Error installing package 'Some::Package': Could not locate a PPD file for >package > >So: where can I get some more info about those m

Instance variables vs parameter passing

2001-05-16 Thread Craig Moynes/Markham/IBM
Some of you may remember hearing about the logfile pruning/archiving tool I was working on (with the date parsing from the record and second calculations etc). I am wondering about the 'perl way' or using variables. I have created a class for a generic 'logfile'. I then have a series of instan

Re: Sorting a Two Dimensional Array

2001-05-16 Thread Jeff Pinyan
On May 16, Paul said: >"or" also short circuits, and some consider it more readable, but it >(and the "and" operator) always return(s) a boolean value, while || >(and &&) return the value of the first true expression. > > $a or $b # returns 1 if either has a non-false value, else '' > $a || $b

RE: FW: delete files

2001-05-16 Thread Paul
--- "Porter, Chris" <[EMAIL PROTECTED]> wrote: > Silly question --- where do i exactly insert all of my information > that points to where my changes need to be made. Sorry if this is a > stupid question. Thank you. If you don't know, it would be sillier not to ask. =o) chdir "/the/directo

Re: Sorting a Two Dimensional Array

2001-05-16 Thread Paul
--- Paul Johnson <[EMAIL PROTECTED]> wrote: > On Wed, May 16, 2001 at 10:05:14AM -0700, Matt Noel wrote: > > I have a simple two-dimensional array, call it @Weights. I think > > of the first index as being the Row index and the second being the > > Column index. Normally I'd access an entry thu

Re: .dat

2001-05-16 Thread Jos Boumans
.dat is used by a myriad of program to indicate it holds some form of data for the program: .dat(a) among the heavy users is SPSS and its friends... bad part is that more then one kind of program uses it, and i've even seen perl modules relying on a .dat file for them, so there's no way to exclusi

Upgrading perl problems ?

2001-05-16 Thread Anshu Anshu
HI All, I have one small doubts and I want to share with you to make sure. I was using old version of perl5 and couple of scripts were using DBD, DBI, Time modules. Recently I did upgrade the perl5 version 5.005_03 (with Sun package ). Will upgarding the perl version will break something ? Bec

Re: Compile problem

2001-05-16 Thread Jos Boumans
Kristi: the problem is that your @INC array (which holds all the directories the perl interpreter will look for files), hold only some temp folder in your my documents directory. ok, this is BAD =) there are 2 solutions to this problem: 1) the hard way: read perldoc perlrun and perldoc perlfaq8

Re: #!/usr/local/bin/perl

2001-05-16 Thread Jos Boumans
Actually, its something YOU need to tell your server, so it knows where perl is the #! is called a shebang and basicly tells your computer where to find perl an example #!c:\perl\bin\perl is what you should type if you installed perl on a wintendo in c:\perl (bin\perl is simply perls subdir to

Compile problem

2001-05-16 Thread Goodman Kristi - kgoodm
> I have installed Perl 623 and PDK 210. Almost everytime I try to compile > one of my old programs, I get this error: > > Can't locate File/Glob.pm in @INC (@INC contains: > C:\DOCUME~1\kmgood\LOCALS~1\Te > mp\0830\ .) at ibtdabilitec.pl line 205. > BEGIN failed--compilation aborted at ibt

Re: foo bar?

2001-05-16 Thread Kevin Meltzer
This is in the jargon file: http://www.tuxedo.org/~esr/jargon/html/entry/foobar.html Cheers, Kevin On Wed, May 16, 2001 at 09:07:11AM -0400, Brett W. McCoy ([EMAIL PROTECTED]) spew-ed forth: > On Wed, 16 May 2001, ber kessels wrote: > > > Maybe a silly question but where does foo-bar or fooba

Re: foo bar?

2001-05-16 Thread Steve Neu
For more information about words like "foo" and "bar"... you can consult "the Jargon File", found in several spots on the web. Here's one of its locations... http://www.tuxedo.org/~esr/jargon/ Stephen Neu Internet Development Characterlink.net (630) 323-9800 ext. 235

Re: foo bar?

2001-05-16 Thread Timothy Kimball
: Maybe a silly question but where does foo-bar or foobar refer to? : : Everyone uses it in perl, but I cannot find the origin of it. See the entry in the Hacker Jargon file: http://www.tuxedo.org/~esr/jargon/html/entry/foo.html -- tdk

Re: foo bar?

2001-05-16 Thread Brett W. McCoy
On Wed, 16 May 2001, ber kessels wrote: > Maybe a silly question but where does foo-bar or foobar refer to? > > Everyone uses it in perl, but I cannot find the origin of it. > I am not english (I am Duch), but even my english teacher didn't know it, he had > even never heard of it. foo and bar

Re: foo bar?

2001-05-16 Thread Francis Henry
actually, ww2 veterans are thought to have originated it. 'fucked up beyond all recognition'. Jos Boumans wrote: > it comes from the vietnam war iirc (watch full metal jacket if you want some > 'insight' ;-) > > it is originally 'fubar' or Fucked Up Beyond Any Recognition (pardon the expletives

Re: newbie question

2001-05-16 Thread Brett W. McCoy
On Wed, 16 May 2001 [EMAIL PROTECTED] wrote: > I hate to admit ignorance but that's why I'm here. I did not realize > that text consoles used screensavers so I thought KDE or > something of that ilk. My idea is simple: alternating colored > screens/backgrounds containing short text messages. You

ppd file?

2001-05-16 Thread kosta
Hello, while trying to install some modules via ppm (in WindowsNT), it sometimes gives me such an error message: Error installing package 'Some::Package': Could not locate a PPD file for package So: where can I get some more info about those myserious PPD files, and what are other ways to i

Re: foo bar?

2001-05-16 Thread Jos Boumans
it comes from the vietnam war iirc (watch full metal jacket if you want some 'insight' ;-) it is originally 'fubar' or Fucked Up Beyond Any Recognition (pardon the expletives) so, us perl geeks use 'foo' and 'bar' as standard variable names in examples now... So much for a short stroll thru his

foo bar?

2001-05-16 Thread ber kessels
Hi, Maybe a silly question but where does foo-bar or foobar refer to? Everyone uses it in perl, but I cannot find the origin of it. I am not english (I am Duch), but even my english teacher didn't know it, he had even never heard of it. I am just curious that's all. Thanx for reading Ber __

FW: FW: delete files

2001-05-16 Thread Porter, Chris
Forwarded message. -Original Message- From: Porter, Chris Sent: Wednesday, May 16, 2001 7:14 AM To: '[EMAIL PROTECTED]'; ',[EMAIL PROTECTED]' Subject: RE: FW: delete files Silly question --- where do i exactly insert all of my information that points to where my changes need to be made

Re: newbie question

2001-05-16 Thread little
I hate to admit ignorance but that's why I'm here. I did not realize that text consoles used screensavers so I thought KDE or something of that ilk. My idea is simple: alternating colored screens/backgrounds containing short text messages. I am probably trying to run a mile before I can sit u

Re: newbie question

2001-05-16 Thread Brett W. McCoy
On Wed, 16 May 2001 [EMAIL PROTECTED] wrote: > I am more raw than a newbie. I don't know a command yet, but I'm > here to listen and learn. When y'all pick yourself up off the floor > from laughing too hard, here's a serious question. I have an idea for > a simple screensaver for a Linux box. Can

newbie question

2001-05-16 Thread little
I am more raw than a newbie. I don't know a command yet, but I'm here to listen and learn. When y'all pick yourself up off the floor from laughing too hard, here's a serious question. I have an idea for a simple screensaver for a Linux box. Can I use Perl to create it? Thanks, Pj

Re: Sorting a Two Dimensional Array

2001-05-16 Thread Paul Johnson
On Wed, May 16, 2001 at 10:05:14AM -0700, Matt Noel wrote: > I have a simple two-dimensional array, call it @Weights. I think of the > first index as being the Row index and the second being the Column > index. Normally I'd access an entry thus: > > $ItemWeight = $Weights[$row][$col]; > > I