RE: Finding words between words...

2002-03-07 Thread Jeff 'japhy' Pinyan
On Mar 7, Timothy Johnson said: >From: Jeff 'japhy' Pinyan > >> ($btwn) = $str =~ /In:(.*)Your/; > >Out of curiosity, what happens if you leave off the parentheses on $btwn? You try it. ;) I suggest you read "'List' is a Four-Letter Word", which you can find at http://www.pobox.com/~japhy/a

Re: Finding words between words...

2002-03-07 Thread Sudarsan Raghavan
Timothy Johnson wrote: > > Out of curiosity, what happens if you leave off the parentheses on $btwn? Putting a parantheses on $btwn assigns $1 to $btwn. The statement can be broken into two statements as if ($str =~ /In:(.*)Your/) { $btwn = $1; } > > > -Original Message---

Re: finding consecutive numbers

2002-03-07 Thread Sudarsan Raghavan
Charles Lu wrote: > Hi > >I am trying to think of a quick and simple way to find out if a number > appears only in consecutive fashion once. In other words, a function that > will return true if a particular number in a list appears only consecutively > once. > > For example: Does "2" appea

RE: Finding words between words...

2002-03-07 Thread Timothy Johnson
Out of curiosity, what happens if you leave off the parentheses on $btwn? -Original Message- From: Jeff 'japhy' Pinyan To: Daniel Falkenberg Cc: Timothy Johnson; [EMAIL PROTECTED] Sent: 3/7/02 10:07 PM Subject: RE: Finding words between words... On Mar 8, Daniel Falkenberg said: >That

RE: text editors

2002-03-07 Thread Timothy Johnson
Ok, I just checked out Vim for myself, and I have to say I'm VERY impressed. It has Perl syntax highlighting and more features than I know what to do with. -Original Message- From: Timothy Johnson To: 'michael '; [EMAIL PROTECTED] Sent: 3/7/02 9:46 PM Subject: RE: text editors I have

RE: Finding words between words...

2002-03-07 Thread Jeff 'japhy' Pinyan
On Mar 8, Daniel Falkenberg said: >That is very similar to what I am looking at doing. The only problem is >I don't want to replace anything in between In: and Your; I just want >to extract anything between In: and Your and store it as a variable. ($btwn) = $str =~ /In:(.*)Your/; -- Jeff "

Re: text editors

2002-03-07 Thread victor
emacs michael wrote: > Speaking of text editors, anyone know of a good one that has > line #ing > for W2K? Free, of course (I am a student). > > BTW - this is a list that is really worth reading. You guys > (and you know who you are) are fantastic. Some of the > explanations offered here are so

RE: text editors

2002-03-07 Thread Timothy Johnson
I haven't used it, but I've heard that ViM works pretty well. http://vim.sf.net/download.php -Original Message- From: michael To: [EMAIL PROTECTED] Sent: 3/7/02 9:36 PM Subject: text editors Speaking of text editors, anyone know of a good one that has line #ing for W2K? Free, of cour

RE: Perl for Mac

2002-03-07 Thread Timothy Johnson
And on top of all the other suggestions, there's also BBEdit. :) -Original Message- From: Elaine -HFB- Ashton To: Michael Kelly Cc: [EMAIL PROTECTED] Sent: 3/7/02 8:52 PM Subject: Re: Perl for Mac Michael Kelly [[EMAIL PROTECTED]] quoth: *> *>BBEdit

text editors

2002-03-07 Thread michael
Speaking of text editors, anyone know of a good one that has line #ing for W2K? Free, of course (I am a student). BTW - this is a list that is really worth reading. You guys (and you know who you are) are fantastic. Some of the explanations offered here are so clear that even I can understand th

RE: Finding words between words...

2002-03-07 Thread Daniel Falkenberg
Hello Tim, That is very similar to what I am looking at doing. The only problem is I don't want to replace anything in between In: and Your; I just want to extract anything between In: and Your and store it as a variable. Regards, Dan -Original Message- From: Timothy Johnson [mailto:

Re: File substitutions??

2002-03-07 Thread Sudarsan Raghavan
> Thanks for the help!! Unfortunetly this solution only copies the modified > line to the tmp file. I need the all the other data to stay unchanged. > e.g. John:111:0 > Peter:222:0 > Jane:333:0 > > becomes > > John:111:0 > Peter:222:1

Re: Perl for Mac

2002-03-07 Thread Elaine -HFB- Ashton
Michael Kelly [[EMAIL PROTECTED]] quoth: *> *>BBEdit . (Not BBEdit Lite, *>mind you, the full version.) *> *>IMHO, it's the best $120 any Mac *>programmer/webmaster/doing-anything-involving-text-er will ever spend on a *>3rd party app. BBEdit is real

Executing Environment Variable( DBI for SYBASE)

2002-03-07 Thread Kalboisak1
Hello everyone: First let me thank all of you who helped me to clearify the topic on fetch-> hashref() for perl dbi. Now I have a little problem. Which I am straggling thru for quite a while. I am trying to load the environment veriable from ./profile file and use some of the variables value wh

Re: Perl for Mac

2002-03-07 Thread Omi
Hi, I recommend this freeware. http://www.asahi-net.or.jp/~gf6d-kmym/en/index.html The next version will soon be released. Omi Kikuchi [EMAIL PROTECTED] on 02.3.8 07:02, Naveen Parmar at [EMAIL PROTECTED] wrote: > Any good text editors for Mac? > > I am interested in something that will di

Re: finding consecutive numbers

2002-03-07 Thread Tanton Gibbs
There are many ways to approach this problem. One way is: my %last_seen; my @arr = (1,2,2,2,3); for( my $i = 0; $i < @arr; ++$i ) { if( exists( $last_seen{$arr[$i]} ) && $last_seen{$arr[$i]} != $i-1 ) { die "Not appearing consecutively!"; } $last_seen{$arr[$i]} = $i; } --

Re: Perl for Mac

2002-03-07 Thread Michael Kelly
On 3/7/02 4:40 PM, Kevin Meltzer <[EMAIL PROTECTED]> wrote: > Assuming you are on OS X, what's wrong with vi? Or emacs? Though BBEdit does admittedly take a lot longer to start up than vim (or the like), BBEdit is more flexible (AFAIK, IMHO) and full-featured. (...Which is why you pay over $100

RE: Finding words between words...

2002-03-07 Thread Timothy Johnson
I think this will do what you're asking, but I can't test it. $line =~ s/In:(.*)Your/In:($newstring)Your/; # substitute In: followed by any number of anything followed by Your # with In: followed by $newstring followed by Your -Original Message- From: Daniel Falkenberg [mailto:[EMAIL PR

Re: Perl for Mac

2002-03-07 Thread George Gunderson
On Thursday, March 7, 2002, at 06:44 , Michael Maibaum wrote: > On Thu, Mar 07, 2002 at 10:02:16PM +, Naveen Parmar wrote: >> Any good text editors for Mac? >> >> I am interested in something that will display at least line #s. > > BBEdit. I use BBEdit, just make

Re: Perl for Mac

2002-03-07 Thread Michael Kelly
On 3/7/02 2:02 PM, Naveen Parmar <[EMAIL PROTECTED]> wrote: > Any good text editors for Mac? > > I am interested in something that will display at least line #s. > > TIA, > - NP BBEdit . (Not BBEdit Lite, mind you, the full version.) IMHO, it's t

Re: Empty compile time value given to use lib

2002-03-07 Thread Michael Fowler
On Thu, Mar 07, 2002 at 05:22:09PM -0500, Nikola Janceski wrote: > nope that doesn't work.. tried it. > it doesn't like that you are passing use lib a var It doesn't? > perl -wle 'BEGIN { $lib = "foo" } use lib $lib; $, = "\n"; print @INC;' foo /home/mfowler/perl5lib /usr/local/

Re: finding consecutive numbers

2002-03-07 Thread Michael Fowler
On Thu, Mar 07, 2002 at 04:59:54PM -0500, Charles Lu wrote: > I am trying to think of a quick and simple way to find out if a number > appears only in consecutive fashion once. In other words, a function that > will return true if a particular number in a list appears only > consecutively on

Re: one liner file update problem on cygwin

2002-03-07 Thread Gyro
"Tanton Gibbs" <[EMAIL PROTECTED]> wrote in message 019201c1c610$decae5e0$81486e0a@brooklyn">news:019201c1c610$decae5e0$81486e0a@brooklyn... > I'm running perl on cygwin and trying to do the following one liner: > > perl -pi -e 'BEGIN{$pwd=`pwd`;} s/^HOME=.*/HOME=$pwd/;' makeinclude > > which wil

Re: Perl for Mac

2002-03-07 Thread Kevin Meltzer
Assuming you are on OS X, what's wrong with vi? Or emacs? Cheers, Kevin On Thu, Mar 07, 2002 at 10:02:16PM +, Naveen Parmar ([EMAIL PROTECTED]) said something similar to: > Any good text editors for Mac? > > I am interested in something that will display at least line #s. -- [Writing CGI

SUMMARY Re: Perl *.pl to *exe -invoke from application

2002-03-07 Thread Steve Few
Summary of my question on what to do about *.pl to *.exe is below. Hey Folks, I have AS Perl build 629, Win95, an application on Win95 to 'invoke' or schedule a Perl simple parsing Perl script. My question: I need to convert a perl script to an *exe in order for my Win95 application to 'invoke'

RE: Perl for Mac

2002-03-07 Thread Wagner-David
Probably one of the best to use is BBEdit @ www.barebones.com Some money is involved, but worth it. Also QUED from Nisus would be another one @ www.nisus.com Wags ;) -Original Message- From: Naveen Parmar [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 14:02 To: [EMAIL

Re: Perl for Mac

2002-03-07 Thread Michael Maibaum
On Thu, Mar 07, 2002 at 10:02:16PM +, Naveen Parmar wrote: > Any good text editors for Mac? > > I am interested in something that will display at least line #s. BBEdit. No competition. see also pepper, vim, emacs, etc. Michael -- Dr Michael A. Maibaum - (W)+

Re: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Michael Fowler
On Thu, Mar 07, 2002 at 03:07:29PM -0600, Russ Foster wrote: > Questoin #1: Is there a function or module to convert numbers to/from > decimal, binary, and hex? Your question is a little vague. Do you have a number, and want to represent it in a certain base? Or do you have a string that should

Re: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Jeff 'japhy' Pinyan
On Mar 7, Russ Foster said: >Questoin #1: Is there a function or module to convert numbers to/from >decimal, binary, and hex? See the documentation for pack(), unpack(), sprintf(), and hex(). That'll cover pretty much every base (no pun intended). >Question #2: Is there a function or module to

Undefined subroutine

2002-03-07 Thread Agustin Rivera
Greetings everyone, I have a script serving pages on our website, and every now and then it gives me an Internal Error and the logs say: [Thu Mar 7 15:19:33 2002] [error] Undefined subroutine &pollstar::singleadvert called at /home/pollstar/tour/newsearchall.pl line 1026. But the routine is the

RE: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Timothy Johnson
I'm not sure about XOR, but you can do bitwise OR with one pipe '|', and AND with one ampersand '&'. Is that what you're asking? As for the conversions, check out the docs on pack and unpack. -Original Message- From: Russ Foster [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002

Finding words between words...

2002-03-07 Thread Daniel Falkenberg
Hey all, Does any one know how I would go about finding everything between the words of... In: Your? So if I have a sentance with the following... Hello all this In: America (New York) Your So is there some perl code that will extract America (New York). Keep in mind tha t everything betwee

Re: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Jonathan E. Paton
--- Russ Foster <[EMAIL PROTECTED]> wrote: > Questoin #1: Is there a function or module to > convert numbers to/from decimal, binary, and hex? sprintf format strings can do some of the magic. There is a hex and oct functions. binary can be done via pack(), if you've got the cookbook this is th

Executing a page within a page

2002-03-07 Thread Daniel Falkenberg
Hey All, I have a piece of code here that uses HTML::TreeBuilder and the LWP::Simple () modules. Having said that, the script is supposed to go ahead and execute another page that contains cookies. Now I want a user to be able to press a button that will go and run another cgi script. I don't

RE: Error installing package

2002-03-07 Thread Wagner-David
I am running an older version AS build 623 but I am behind a firewall also and was able to install dbi with no problem. From within ppm what does a SET by itself tell you about repositories? Wags ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Th

RE: Error installing package

2002-03-07 Thread Timothy Johnson
Are you able to install other packages? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 1:05 PM Cc: [EMAIL PROTECTED] Subject: RE: Error installing package In my case, PPM has been working. PPM QUERY returns a list of the modules t

RE: Error installing package

2002-03-07 Thread Peter_Farrar
Awesome Timothy! You are Awesome! I haven't fixed the Proxy problem, but I copy-pasted the HTTP_PROXY variable name from your email into the search box at ActiveState.com and it gave me a link to a doc that says it can help solve the problem. Unfortunately the network guys went home already. B

RE: Invoke MS EXCELL From Perl

2002-03-07 Thread M. Kirk DeBaets
GD is available for v5.6.1 from ActiveState, see session transcript below for perl -v and PPM. GD and GD::Graph will both be necessary. I use it for rendering *.png files which should be able to be identified and rendered by IE. A very simple and sloppy example of use is also included following

finding consecutive numbers

2002-03-07 Thread Charles Lu
Hi I am trying to think of a quick and simple way to find out if a number appears only in consecutive fashion once. In other words, a function that will return true if a particular number in a list appears only consecutively once. For example: Does "2" appear only in consecutive fashion

RE: Empty compile time value given to use lib

2002-03-07 Thread Nikola Janceski
nope that doesn't work.. tried it. it doesn't like that you are passing use lib a var but this does work, but don't know how you would put a subroutine in there. BEGIN { our @INC; my $libdir = "/libpath"; unshift(@INC, $libdir) } -Original Message- From: Wagner-David [mailto:[EMAIL PRO

RE: help with perl/Tk

2002-03-07 Thread Jonathan E. Paton
> Look for simple mistakes.. Try the Perl/Tk book by > O'Rielly. Not bad... but not great like the other > books by O'R. I learned perlTk from "Perl in a Nutshell", if you are going to shell out more money then head there - it's a reference book that most of the important stuff in some depth. Ho

Re: Empty compile time value given to use lib

2002-03-07 Thread Jenda Krynicky
From: "Carl Schoeneman" <[EMAIL PROTECTED]> > I'm using "use lib" dynamically: > > $script_dir = get_lib(); > use lib "$script_dir"; > > This works but generates the warning "Empty compile time value given > to use lib." Is there any way to supress this message without

RE: Error installing package

2002-03-07 Thread Timothy Johnson
Are you using a proxy? If so, check the docs at ActiveState. It's been a long time since I had to do it. I think you have to set up an environment variable (HTTP_PROXY, I think) for PPM to work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, Marc

silly question

2002-03-07 Thread M z
does anyone know if there is a similar question form for unix? my roomate is studying to become a sys admin and I'm trying to direct him to a similar email? i.e. [EMAIL PROTECTED]??? __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest fr

Perl for Mac

2002-03-07 Thread Naveen Parmar
Any good text editors for Mac? I am interested in something that will display at least line #s. TIA, - NP _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: [EMAIL PR

Re: Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread John W. Krahn
Russ Foster wrote: > > Questoin #1: Is there a function or module to convert numbers to/from > decimal, binary, and hex? perldoc -f hex perldoc -f oct perldoc -f sprintf perldoc -f vec perldoc POSIX # Look for strtol() and strtoul() > Question #2: Is there a function or module to perform

RE: Empty compile time value given to use lib

2002-03-07 Thread cschoeneman
Works great. Thank you. You're correct about it not working like I had said it was. The module was in the same directory as the script so was found regardless of the "use lib" statement not working. -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursda

Number Conversion - decimal to binary to hex, etc

2002-03-07 Thread Russ Foster
Questoin #1: Is there a function or module to convert numbers to/from decimal, binary, and hex? Question #2: Is there a function or module to perform binary calculations (AND, OR, XOR)? Russell J Foster e. [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: Error installing package

2002-03-07 Thread Peter_Farrar
In my case, PPM has been working. PPM QUERY returns a list of the modules that were initially installed. But the error comes each time I try to install new modules with PPM: Installing package 'DBI'... Error installing package 'DBI': Could not locate a PPD file for package DBI I assume the p

Re: Empty compile time value given to use lib

2002-03-07 Thread Jeff 'japhy' Pinyan
On Mar 7, Carl Schoeneman said: >I'm using "use lib" dynamically: > >$script_dir = get_lib(); >use lib "$script_dir"; > >This works but generates the warning "Empty compile time value given to use >lib." Is there any way to supress this message without disabling warnings >entirely? No,

RE: Empty compile time value given to use lib

2002-03-07 Thread Wagner-David
You might be able to block the code with warnings within the block and then when it hits the end of the block, it will return to it's prior state. Wags ;) -Original Message- From: Carl Schoeneman [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 11:28 To: [EMAIL PROTECTE

RE: Empty compile time value given to use lib

2002-03-07 Thread Nikola Janceski
This will work.. but you probably can't use it for a subroutine call returning the $libdir. BEGIN { our @INC; my $libdir = "/libpath"; unshift(@INC, $libdir) } -Original Message- From: Carl Schoeneman [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 2:28 PM To: [EMAIL PROTECTE

RE: Error installing package

2002-03-07 Thread RArul
Peter, My trick worked. I uninstalled ActivePerl 631 and then again installed it. Now PPM is working like a charm and I was able to install all Modules. I was able to even use query command from ppm which showed all available packages. Thanks, Rex -Original Message- From: Arul, Rex Sen

RE: Error installing package

2002-03-07 Thread RArul
I am also having problems with PPM and have posted on Perl-Win-32-Users mailing list at activestate. For me it is Win32-Lanman package. I also having the same problems as you. I did the same thing yesterday and everything worked. It was Activestate Perl Build 631. I had problems with OS (With Wi

RE: use strict and warnings...

2002-03-07 Thread Nikola Janceski
Found my answer... ${caller()."::a"} is very bad (in strict terms) so I just set a "no strict 'refs';" in the block where I use it. Thanx for all the help. -Original Message- From: Nikola Janceski [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 12:53 PM To: 'Tanton Gibbs'; Begi

one liner file update problem on cygwin

2002-03-07 Thread Tanton Gibbs
I'm running perl on cygwin and trying to do the following one liner: perl -pi -e 'BEGIN{$pwd=`pwd`;} s/^HOME=.*/HOME=$pwd/;' makeinclude which will replace the line HOME=/home/whoever with HOME=(whever I happen to be at the moment) in my makinclude file However, cygwin apparently does not like

Empty compile time value given to use lib

2002-03-07 Thread Carl Schoeneman
Hola, I'm using "use lib" dynamically: $script_dir = get_lib(); use lib "$script_dir"; This works but generates the warning "Empty compile time value given to use lib." Is there any way to supress this message without disabling warnings entirely? Thank you, Carl -- To unsubscribe,

Re: help with perl/Tk

2002-03-07 Thread Tagore Smith
richard noel fell wrote: > Below is a simple script which I am using as part of my attempt to learn > how to program a gui with perl and Tk. I have copied the program from a > book, "Cross Platform Perl" (not very good, but some isolated good > parts), but get the following error message when I tr

Error installing package

2002-03-07 Thread Peter_Farrar
I am on NT, trying to use 'PPM INSTALL DBI' and receiving an error message: Error installing package 'DBI': Could not locate a PPD file for package DBI: Very frustrating. I have yet to succeed with PPM. I know there is a firewall here, is that possibly the problem? Are there config scripts or

Re: help with perl/Tk

2002-03-07 Thread Roger Morris
At 01:14 PM 3/7/2002 -0500, richard noel fell wrote: >Below is a simple script which I am using as part of my attempt to learn >how to program a gui with perl and Tk. I have copied the program from a >book, "Cross Platform Perl" (not very good, but some isolated good >parts), but get the following

Re: help with perl/Tk

2002-03-07 Thread Joe Raube
My guess would be this line: $filebutton=$menubar->Menubutton;(-text="File", -underline=>0); with the semi-colon after the word Menubutton __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free ema

RE: help with perl/Tk

2002-03-07 Thread Nikola Janceski
Look for simple mistakes.. Try the Perl/Tk book by O'Rielly. Not bad... but not great like the other books by O'R. $filebutton=$menubar->Menubutton;(-text="File", -underline=>0); should be: $filebutton=$menubar->Menubutton;(-text=>"File",

Re: help with perl/Tk

2002-03-07 Thread Tanton Gibbs
On line 8, you have -text = "File" instead of -text => "File" looks like a typo because you have it right every where else. As for the warning, I don't use Tk and don't know if that is supposed to be "end" or end(); - Original Message - From: "richard noel fell" <[EMAIL PROTECTED]> To: <

help with perl/Tk

2002-03-07 Thread richard noel fell
Below is a simple script which I am using as part of my attempt to learn how to program a gui with perl and Tk. I have copied the program from a book, "Cross Platform Perl" (not very good, but some isolated good parts), but get the following error message when I try to compile the program. Has any

RE: use strict and warnings...

2002-03-07 Thread Nikola Janceski
the our works... now I got a crap load of errors with: Can't use string ("main::a") as a SCALAR ref while "strict refs" in use at //TempSorter.pm line 114. I gotta read the docs on use strict and warnings. I am using ${caller()."::a"} #line 114 in my program.. will 'our' or 'use vars' help me

RE: Perl *.pl to *exe -invoke from application

2002-03-07 Thread Timothy Johnson
Which application are you using? If you are using the Task Scheduler, then all you have to do is put your target as Perl.exe with your script as the first parameter. -Original Message- From: Steve Few [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 8:55 AM To: [EMAIL PROTECTED

Re: Perl *.pl to *exe -invoke from application

2002-03-07 Thread Jenda Krynicky
From: Steve Few <[EMAIL PROTECTED]> > I have AS Perl build 629, Win95, an application on Win95 to 'invoke' > or schedule a Perl simple parsing Perl script. > > My question: > > I need to convert a perl script to an *exe in order for my Win95 > application to 'invoke' the perl s

Re: use strict and warnings...

2002-03-07 Thread Jenda Krynicky
From: Nikola Janceski <[EMAIL PROTECTED]> > I am going through my old code and adding: > use strict; > use warnings; > > And I am running into some problems. I created a module (that I know > works). > > [ snip FILE: TempSorter.pm ] > ## Packages used > package TempSorter; > u

Re: use strict and warnings...

2002-03-07 Thread Tanton Gibbs
OOPS! don't put the comma in the qw! use vars qw(@ISA @EXPORT); - Original Message - From: "Tanton Gibbs" <[EMAIL PROTECTED]> To: "Nikola Janceski" <[EMAIL PROTECTED]>; "Beginners (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 12:26 PM Subject: Re: use strict and warnings..

Re: use strict and warnings...

2002-03-07 Thread Tanton Gibbs
You can either declare them with our (for newer versions of perl) our @ISA = ... our @EXPORT = ... or you can say( for compatibility with older perls) use vars qw(@ISA, @EXPORT); at the top of your file. - Original Message - From: "Nikola Janceski" <[EMAIL PROTECTED]> To: "Beginners (E-

use strict and warnings...

2002-03-07 Thread Nikola Janceski
I am going through my old code and adding: use strict; use warnings; And I am running into some problems. I created a module (that I know works). [ snip FILE: TempSorter.pm ] ## Packages used package TempSorter; use Exporter; use strict; ### GLOBAL VARIABLES @ISA = qw(Exporter); @EXPORT = qw( w

Re: creating custom switches in my program?

2002-03-07 Thread Tanton Gibbs
Sorry... use vars qw($opt_d); - Original Message - From: "M z" <[EMAIL PROTECTED]> To: "Tanton Gibbs" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 11:52 AM Subject: creating custom switches in my program? > Mr. Gibbs > > thank you for your help > > but w

Perl *.pl to *exe -invoke from application

2002-03-07 Thread Steve Few
Hey Folks, I have AS Perl build 629, Win95, an application on Win95 to 'invoke' or schedule a Perl simple parsing Perl script. My question: I need to convert a perl script to an *exe in order for my Win95 application to 'invoke' the perl script. What are my options for making it a *.exe? Do I h

creating custom switches in my program?

2002-03-07 Thread M z
Mr. Gibbs thank you for your help but when I just implemented the use directives and getopts subroutine call use strict; use Getopt::Std; use vars qw(opt_d); getopts("d:"); the compiler is complaining, namely 'opt_d' is not a valid variable name at my script ... BEGIN failed--compilation abo

RE: File substitutions??

2002-03-07 Thread Jason Larson
> -Original Message- > From: Patrick Bateman [mailto:[EMAIL PROTECTED]] > Subject: File substitutions?? > > Hi everyone Hi! I'm still pretty new myself, so forgive me for not doing this the "Perl way". > > Need help with this please, pretty please!! > > I open a file containing this:

RE: Long shot on possibly existent pattern matching module?

2002-03-07 Thread Nikola Janceski
(cartman impersonation) swwt. -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 11:01 AM To: Nikola Janceski Cc: Beginners (E-mail) Subject: Re: Long shot on possibly existent pattern matching module? On Mar 7, Nikola Janceski sai

Re: Long shot on possibly existent pattern matching module?

2002-03-07 Thread Jeff 'japhy' Pinyan
On Mar 7, Nikola Janceski said: >I was wondering if there is a module out there that will find a the common >pattern among an array of strings and return the regular expression to match >the common part. It's not going to be "fun", but it can be done: sub longest_common_substr { # provide

RE: Invoke MS EXCELL From Perl

2002-03-07 Thread murphy, daniel (BMC Eng)
Here's what I've done to start an edit session from Perl: use Win32::Process; Win32::Process::Create($Process, "c:\\program files\\ultraedit\\uedit32.exe", "uedit32 $alljobs_list" , 0, DETACHED_PROCESS, ".")|| die

Re: Good God. I'm going to pull my hair out.

2002-03-07 Thread Derrick Wippler
Why did I say CGI? I meant DBI. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Good God. I'm going to pull my hair out.

2002-03-07 Thread Randal L. Schwartz
> "Derrick" == Derrick Wippler <[EMAIL PROTECTED]> writes: Derrick> The thing that puzzles me is, that CGI is supposed to return a reference. s/CGI/DBI/, right? Derrick> So.. Derrick> $rec = $st->fetchrow_arrayref ; Derrick> Should return a Reference to an array. But it's always the

RE: Long shot on possibly existent pattern matching module?

2002-03-07 Thread Nikola Janceski
nope... regular expression because I want to use it again to substitute that common part with a new string basically with the example below I would want to change 'crap' to 'somethingelse' but the I want to be able to use it with various arrays that have different common strings that I won't know

Re: PArsing a template file

2002-03-07 Thread Jeff 'japhy' Pinyan
On Mar 7, Robert Graham said: >What I want to do is to read the line and print it out with the value for >$today which will be set in the program. perldoc -q 'expand variables' -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.

Re: Good God. I'm going to pull my hair out.

2002-03-07 Thread Derrick Wippler
Nice Article, explains alot of questions I've had about addressing and references. The thing that puzzles me is, that CGI is supposed to return a reference. So.. $rec = $st->fetchrow_arrayref ; Should return a Reference to an array. This Reference to an array is then placed in an array. I

Re: Long shot on possibly existent pattern matching module?

2002-03-07 Thread Paul Johnson
On Thu, Mar 07, 2002 at 09:52:43AM -0500, Nikola Janceski wrote: > I think I am asking a bit much on this... > > I was wondering if there is a module out there that will find a the common > pattern among an array of strings and return the regular expression to match > the common part. Do you rea

Archive::Tar

2002-03-07 Thread Tyler Longren
Hello, Can I archive directories using the Archive::Tar module? http://www.perldoc.com/perl5.6.1/lib/Archive/Tar.html Thank you, Tyler -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

PArsing a template file

2002-03-07 Thread Robert Graham
Hi there I need to write a program that will parse a template file that looks something like this: THE FORECAST WAS ISSUED AT $today SOME MORE TEXT... .. .. What I want to do is to read the line and print it out with the value for $today which will be set in the program. Any help will be appre

Long shot on possibly existent pattern matching module?

2002-03-07 Thread Nikola Janceski
I think I am asking a bit much on this... I was wondering if there is a module out there that will find a the common pattern among an array of strings and return the regular expression to match the common part. ie: @stuff = qw (123crapstuff morecrap crappedshit); I want the module to return 'cr

Re: File substitutions??

2002-03-07 Thread Patrick Bateman
"Sudarsan Raghavan" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Patrick Bateman wrote: > > > Hi everyone > > > > Need help with this please, pretty please!! > > > > I open a file containing this: > > e.g. > > John:111:0 > > Peter:222:0 > > Jane:

Re: Perl DBI for Sybase [OT]

2002-03-07 Thread Jenda Krynicky
From: Jon Molin <[EMAIL PROTECTED]> > Jenda Krynicky wrote: > [snip] > > > > You could use fetchall_arrayref(), but I would not recomend doing > > that unless you are really sure the resultset is small enough. That > > would slurp all the data to memory of YOUR process with quite some > > overhe

Re: Perl DBI for Sybase [OT]

2002-03-07 Thread Jon Molin
Jenda Krynicky wrote: [snip] > > You could use fetchall_arrayref(), but I would not recomend doing > that unless you are really sure the resultset is small enough. That > would slurp all the data to memory of YOUR process with quite > some overhead. > Are there any benchmarks on this? Becouse i

Re: Perl DBI for Sybase

2002-03-07 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > Hello all: > I am pretty new in this matter. > My code looks like this: > $sth2=$dbh->prepare("Select job.joid, > job_name,command,owner,machine,std_out_file,std_err_file,box_joid,time > zone from job, job2 where job.joid = job2.joid"); $sth2->execute

Re: File substitutions??

2002-03-07 Thread Sudarsan Raghavan
Patrick Bateman wrote: > Hi everyone > > Need help with this please, pretty please!! > > I open a file containing this: > e.g. > John:111:0 > Peter:222:0 > Jane:333:0 > > Now I select a particular name from an input. > Now comes the part I'm having trouble with. For that name I've

Re: autorun

2002-03-07 Thread Jon Molin
"Mohammed A. Hassan" wrote: > > Well , I want to do this this on UNIX > > "Jan Gruber" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi ! > > > > On Wednesday 06 March 2002 09:21 am, you wrote: > > > How can I scheduler a cgi script? > > > > Depends on t

File substitutions??

2002-03-07 Thread Patrick Bateman
Hi everyone Need help with this please, pretty please!! I open a file containing this: e.g. John:111:0 Peter:222:0 Jane:333:0 Now I select a particular name from an input. Now comes the part I'm having trouble with. For that name I've selected how do I increment the count value. e.

Re: autorun

2002-03-07 Thread Mohammed A. Hassan
Well , I want to do this this on UNIX "Jan Gruber" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi ! > > On Wednesday 06 March 2002 09:21 am, you wrote: > > How can I scheduler a cgi script? > > Depends on the platform you are working on. Window$ has its Tas

Re: RIPPING out info

2002-03-07 Thread Jonathan E. Paton
> If data on a website is not embedded in html tags, and > it usually isn't (especially if what is being > retrieved is an ASP), does anyone know a simple way to > hack the information out anyway? SELECT column FROM table WHERE column LIKE "%KEYWORD%" Keeping this kind of thing close to the da