Re: Twisting Text

2011-03-23 Thread Greg J
Emeka, What you are looking for is a word stemmer. You might want to take a look at something like Porter Stemmer. -Greg On Wed, Mar 23, 2011 at 5:35 PM, Emeka wrote: > Hello All, > > I have a file containing dictionary of words ... I would like to play with > the file in this

Regex

2011-01-26 Thread Greg J
I am trying to extract numeric values from a data file and I'm having trouble writing a regular expression that would do this. My data looks like this: <{5, 26}{20, 42, 64}{23, 48}> I am trying to turn this into a list of lists [ [5, 26], [20, 42, 64], [23,48] ] Any pointers would be greatly app

Simple Script That Runs Under Perl 5.8 but not under Perl 5.10

2010-11-23 Thread Greg Grant
The following script runs on 5.8 but does not run on 5.10. I distilled out a short program with the heart of the bug. The output of this script could be achieved easily without recursion but my real sort routine does need to be recursive, but I removed most of the code. Ignore the fact that this d

Problems constructing a hash of hashes

2010-06-16 Thread Greg J
all I get is this: $VAR1 = { 'Hello' => { '' => 2 } }; What I want is this: $VAR1 = { 'Hello' => { 'World' => 1 'There' => 1

Re: Perl Reference Books.

2010-03-22 Thread Greg Kurts
ing-Perl-3rd-Larry-Wall/dp/0596000278/ref=sr_1_2?ie=UTF8&s=books&qid=1269272420&sr=1-2 -- Thanks- Greg Kurts On Mon, Mar 22, 2010 at 10:31 AM, wrote: > Hi, I am a new to Perl programming, please can anyone advice me right book > to understand Perl. > > Thanks, > Prasad P

Re: getting input without hitting return

2010-03-18 Thread Greg
Raymond Wan wrote: 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

getting input without hitting return

2010-03-17 Thread Greg
loop: use strict; use warnings; my $input; while (!$input) { print "Enter option (A, B, C) \n"; $input=; } print $input; As you can see, a user still needs to hit enter. I'm glad for every hint. Thanks in advance! Greg -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: CGI

2009-06-09 Thread Greg Eldridge
> > > HI > > > try that > > > -- > > > > Owen It It has always been my understanding that perl is "whitespace irrelevant" any help would be appreciated... Thanks, Greg signature.asc Description: This is a digitally signed message part

Re: File::Find

2009-05-18 Thread Greg Eldridge
> > http://search.cpan.org/~tty/kurila-1.19_0/lib/Benchmark.pm > > -- > Ron Bergin Thanks to all for replying. Greg. signature.asc Description: This is a digitally signed message part

Re: File::Find

2009-05-18 Thread Greg Eldridge
7 -- -93% > dir 0.1191304% -- What Benchmark .pm are you using ? CPAN i/benchmark/ => lists 66 entries, but none of which are simply Benchmark Thanks in advance. Greg. signature.asc Description: This is a digitally signed message part

Re: libwww-perl library ==> Off Topic

2009-04-22 Thread Greg Eldridge
ow ssh/scp connections ? I would strongly suggest NOT USING TELNET as it transmits in plain text.  If you can get it turned OFF on the server, that would be good as well. If by chance you are unfamiliar with SSH, man ssh, or google ssh. HTH, Greg

RegEx to extract last character of a line

2009-02-07 Thread Greg
. -Greg -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-07 Thread Greg Bowser
On Sun, Apr 6, 2008 at 7:52 PM, Kelly Jones <[EMAIL PROTECTED]> wrote: > Many programming languages (including Perl, Ruby, and PHP) support hashes: > > $color['apple'] = 'red'; > $color['ruby'] = 'red'; > > $type['apple'] = 'fruit'; > $type['ruby'] = 'gem'; > > This quickly lets me find the color

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-07 Thread Greg Bowser
[0] => 1 ) ) [name] => Array ( [apple] => Array ( [0] => 0 ) [ruby] => Array ( [0] => 1 ) ) ) Conceptu

Re: Array Manipulation newbie

2007-10-29 Thread Greg
Thank you, Tom, that is exactly what I was looking for!! Thanks again! -Greg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Array Manipulation newbie

2007-10-25 Thread Greg
2=print $_, "|" foreach @record; Or how would I best do that? Thanks much, -Greg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Array Manipulation

2007-10-25 Thread Greg
Similar issue here, but with a twist. I have an input file that I'm reading in that is pipe delimited. (HL7 actually) So far I have my @record = split (/\|/,$_); I want to take $record[16] and replace it with $record[16] / $record[7] ONLY if $record[7] is not empty. I have this accomplished by $co

FW: remove line if field one is duplicate

2007-02-28 Thread Keenan, Greg John \(Greg\)** CTR **
<[EMAIL PROTECTED]> wrote: > Hi, > > I have to combine several Unix password files and remove any duplicate > accounts - putting this into LDAP. > > I have the following code that will remove any duplicate whole lines but > I need to remove lines only if the first field of the password file is a >

remove line if field one is duplicate

2007-02-28 Thread Keenan, Greg John \(Greg\)** CTR **
e help with a solution to this? Thanks, Greg. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

FW: How to get all the files under the webdir?

2007-02-14 Thread Keenan, Greg John \(Greg\)** CTR **
>Hello lists, > >I want to get all the files on some a webdir.For example: > >http://www.foo.com/bar/ > >But that dir has a default page "index.htm".So when I accessed the url I only got the >default page. > >Can you tell me is there a way to fetch all the files in that dir?Thanks a lot. Hi, As

RE: installing question

2007-01-18 Thread Keenan, Greg John (Greg)** CTR **
Please take the Gentoo discussion somewhere else. This list is for perl beginners to get help, not for silly distribution wars. Go play on Slashdot or something. On 1/9/07, Arvind Autar <[EMAIL PROTECTED]> wrote: > > debian. > > Gentoo has a whole history of open source distrobuters who boycot it

Re: 'unknown column' error

2006-12-20 Thread Greg Sabino Mullane
execute($complex,$plaats,$straat,$teller) or die "Connection Error: $DBI::errstr\n"; Not only will this free you from worrying about how to quote the variables, but it allows you to re-use the same statement with different variables by passing different arguments to execute again. --

Re: Using connect_cached

2006-12-11 Thread Greg Sabino Mullane
ted twice because you disconnected the first handle before trying to grab it again. It's unclear exactly what you mean by "persistent connection", but connect_cached is probably not the solution you are looking for. Connection caching is usually done at another level. For example, if t

Re: an easy way to know if a module is installed or not

2006-10-05 Thread Greg Sabino Mullane
;). Usage examples: $ modver DBD::Pg Version 1.49 $ modver Acme::Dynamite No module found $ modver Data::Dumper Version 2.121 -- Greg Sabino Mullane [EMAIL PROTECTED] [EMAIL PROTECTED] End Point Corporation PGP Key: 0x14964AC8 20061005 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9

Re: GD::Graph and integer on the Y-axis

2006-10-02 Thread Greg Sabino Mullane
iously created via the new method. - -- Greg Sabino Mullane [EMAIL PROTECTED] End Point Corporation PGP Key: 0x14964AC8 200610021303 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -BEGIN PGP SIGNATURE- iD8DBQFFIUdevJuQZxSWSsgRAjL0AKCnIBO/bdFgeOnDv2kBnYmv7/6eAwCeJm

Re: DBI

2006-08-01 Thread Greg Sabino Mullane
uot;%s=%d\n", $_, &{"DBI::$_"}; } In addition, whichever database driver you are using may have its own type constants available. For example, if you are using Postgres, you can specify: use DBD::Pg (:pg_types); Hope that helps. -- Greg Sabino Mullane [EMAIL PROTECTED] [EMAIL

RE: Work with first x number of elements in array

2006-05-25 Thread Keenan, Greg John (Greg)** CTR **
>Small correction: because of the hyphens those barewords need to be quoted. > >my @cfgs = ( >[ Toaster=> 6 ], >[ 'MFG-UNIX' => 5 ], >[ 'SYS-UNIX' => 5 ], >[ 'Amanda-Daily' => 1 ], >); > >my %cfgs = ( >Toaster=> 6, >'MFG-UNIX' => 5, >'SYS-

RE: Work with first x number of elements in array

2006-05-25 Thread Keenan, Greg John (Greg)** CTR **
y using >the File::ReadBackwards module. Thanks for the solutions John, works a treat. Files are quite small but will look into File::ReadBackwards Regards, Greg. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Work with first x number of elements in array

2006-05-25 Thread Keenan, Greg John (Greg)** CTR **
suggestions for improving this script much appreciated. Thanks, Greg. --start-- use strict; use warnings; my $cfgDir = '/amanda/admin/etc/amanda'; my @cfgs = qw(Toaster MFG-UNIX SYS-UNIX Amanda-Daily); my %numTapes = ( "$cfgs[0]" => 6, "$cfgs[1]" =&

RE: Out of memory! - from CPAN

2006-03-15 Thread Keenan, Greg John (Greg)** CTR **
ctions are in place then all those resources may not be available. Check your syslogs and dmesg for entries when you get the "out of memory" errors. Good luck, Greg. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.or

RE: num to alpha

2006-02-27 Thread Keenan, Greg John (Greg)** CTR **
that you want. Sorry - my mistake. Still trying to get the hang of perl and I've totally confused a few things. Back to the books for me! Cheers, Greg. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

RE: num to alpha

2006-02-27 Thread Keenan, Greg John (Greg)** CTR **
to use %convert instead in his example above. Cheers, Greg. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Regex - find chars between ()

2005-09-11 Thread Keenan, Greg John (Greg)** CTR **
t;Can't open $filePW: $!"; while () { if (/$host/) { my @c = /(\D,\d\d)\s(\D,\d\d)/; } } close(PWFILE); ...do something with $c[0] $c[1] $c[2] $c[3]... #EndCode Really appreciate some pointers. Regards, Greg

RE: Read txt file and use each line as regex and output matches t o file.

2005-09-11 Thread Keenan, Greg John (Greg)** CTR **
>Thanks for the pointers I have made your recommended modifications, as you >can see I'm new to this, much appreciated. :-) > >The script as it stands is very inefficient because of the way I have done >it, you mentioned saving the matches or IP's in a hash how would I go about >doing this if you

RE: 2-way lookup

2005-09-08 Thread Keenan, Greg John (Greg)** CTR **
-Original Message- >> Hi, > >Hello, > >> I have a file like: >> >> A B C >> 1aa11bb11cc11 >> 2aa22bb22cc22 >> 3aa33bb33cc33 >> 4aa44bb44cc44 >> >> I have two sets of coordinates like (A2, C1) and I need to join them >>

2-way lookup

2005-09-08 Thread Keenan, Greg John (Greg)** CTR **
r way and I'm looking for suggestions. Thanks for your time. Greg Keenan Lucent Technologies * Level 1, 68 Waterloo Road North Ryde NSW 2113 Australia * +61 2 9491 6898 * [EMAIL PROTECTED]

RE: regex - no field seperator

2005-08-18 Thread Keenan, Greg John (Greg)** CTR **
-Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Friday, 19 August 2005 10:26 AM To: Perl Beginners Subject: Re: regex - no field seperator Keenan, Greg John (Greg)** CTR ** wrote: >>From: Wagner, David --- Senior Programmer Analyst --- WGO >> >>

RE: regex - no field seperator

2005-08-18 Thread Keenan, Greg John (Greg)** CTR **
-Original Message- >From: Wagner, David --- Senior Programmer Analyst --- WGO >[mailto:[EMAIL PROTECTED] >Sent: Friday, 19 August 2005 3:21 AM >To: Keenan, Greg John (Greg)** CTR **; beginners@perl.org >Subject: RE: regex - no field seperator > >Keenan, Greg John

regex - no field seperator

2005-08-17 Thread Keenan, Greg John (Greg)** CTR **
elds I assume. @oput = /(\d+) (.+\..+\..+) (\d+) (\d+) (\d+) (\d{2,7}) (\d{2,6}) (\d+) (\d+) (\d+) (\d+) (\d+) (\d+) (\d+) (\d+) (\d+) (\d+) (\d+) (\d+)/; Can someone point me in the right direction please? Thanks Greg.

FW: Find string ending with %

2005-08-16 Thread Keenan, Greg John (Greg)** CTR **
-Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] while() { my @oput2 = /(\d+)%/ or next; print "XXX @oput2 XXX\n"; } Thanks John, that's solved it. I'll read up on next. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Find string ending with %

2005-08-16 Thread Keenan, Greg John (Greg)** CTR **
6 22% 456 456 456 789 tail Output data: XXX XXX XXX 111 XXX XXX 22 XXX XXX XXX XXX XXX How do I tell it not to process every line in the file, just the lines that contain the relevant string? Thanks, Greg Keenan Lucent Technologies * Level 1, 68 Waterloo Road North Ryde NSW 2113 Australia * +61 2 9491 6898 * [EMAIL PROTECTED]

Re: perl string operations - query

2005-08-03 Thread Greg Maruszeczka
prakash m wrote: > I have written a small code which will just try to split a string based on > the Key. > - > $val="sample1a+2.8sample2a+2.8sample3a"; > print "String=$val\n"; > print "split Key: 2.8\n"; > @arr=split(/2.8/,$val); > foreach $i (@arr) > { > print "**Split value: $

system v backticks

2005-07-27 Thread Keenan, Greg John (Greg)** CTR **
Hi, Can someone explain the difference between backticks and system when evaluated in this if statement: sub getDate { print "start date\n"; if ( system("/bin/date") ) { print "can't get date\n"; exit(2); } print "finish date\n"; } Returns the following: start date Thu Jul 28 12:13:5

Re: update perl, calling sub

2005-07-15 Thread Greg Maruszeczka
Ing. Branislav Gerzo wrote: > Hi all, > > recently I've updated perl on FreeBSD machine to latest, but my > modules go away, they are not in @INC. I have 2 questions: > 1. is there possibility update perl, without modules going away? > 2. I have some perl CGIs on server, now I have 500 internal se

regular expression

2005-05-03 Thread Greg Sheridan
Hi everyone, I'm new to this list and I have a very basic question about regular expressions. I inherited a Perl script, and I'm trying to figure out what a specific line does. Here's the line: $dose_density =~ s/[A-Za-z\/ ]//g; Any help would be greatly appreciated.

Take previous line after match?

2005-02-22 Thread Greg Jackson
lace it in an array as well. My question is, how can I take the previous line after a match? Thanks in advance! ~ Greg OS/2 Files Severity : blaa blaa blaa Status: blaa blaa blaa Finding Details: blaa blaa blaa Manual Fix Procedures: blaa blaa blaa POSIX Files Severity : blaa blaa blaa St

Re: guessing script

2004-04-15 Thread Greg Donald
t;; } do { run(); print "Play again? "; chomp($answer = ); } while (lc($answer) eq 'y'); -- Greg Donald [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

guessing script

2004-04-15 Thread Greg Donald
quot;$guess is too LOW!\n"; } } while ($guess != $solution); print "$guess is correct, YAY!\n"; print "Play again? "; chomp(my $answer = ); if (lc($answer) eq 'y') { run(); } } run(); TIA :) -- Greg Donald [EMAIL PROTECTED] -- To unsubscri

Re: [Re: Windows command line Search and Replace]

2003-06-16 Thread GREG CARRARA
>"Jenda Krynicky" <[EMAIL PROTECTED]> wrote: >>From: GREG CARRARA <[EMAIL PROTECTED]> >> Hello, >> I'm trying to search for a word and replace it multiple files at a >> windows command prompt with the following: >> >> perl -pi -

Windows command line Search and Replace

2003-06-13 Thread GREG CARRARA
Hello, I'm trying to search for a word and replace it multiple files at a windows command prompt with the following: perl -pi -e 's/wordToFind/replaceWithThisWord/gi'*.fileExtension This errors out. I've tried to replace the delimiters / with - to no effect. Does someone know how to alter this

OT Re: [RE: windows event log]

2003-05-31 Thread GREG CARRARA
On a different note. Does anyone know how to track events down to milliseconds in the event log? I wrote a script which pulls out HH:MM:SS.uu (WMI script) but .uu is all zeros. TIA! gc Roy Sprague <[EMAIL PROTECTED]> wrote: > - > Attac

RE: CPAN hacked? OT

2003-04-01 Thread Palmer Greg
It looks okay now -Original Message- From: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 12:45 PM To: 'Jensen Kenneth B SrA AFPC/DPDMPQ'; '[EMAIL PROTECTED]' Subject: RE: CPAN hacked? OT Jensen Kenneth B SrA AFPC/DPDMPQ wrote: > April fools joke or someone hac

RE: trying to match variable names

2003-03-07 Thread Carrara, Greg
You're right! I posted before I realized. But thanks to all who responded. I can do exactly what I need! -Original Message- From: Mark Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 5:47 PM To: Carrara, Greg; [EMAIL PROTECTED] Subject: RE: trying to match var

RE: trying to match variable names

2003-03-06 Thread Carrara, Greg
Hello, I'm trying to write a script that reads a file line by line and if the line contains a space it puts quotation marks around it and writes it to another file. I mostly have this working except that in the case of the lines that contain the space it puts the quotation mark at the beginning of

Re: localtime ()

2002-10-28 Thread Greg Oliver
Sorry - I am off on another tangent here.. "use locale;" is definately not what you need. I should read more closely! -Greg On Mon, 28 Oct 2002 09:38:18 -0600 Goodman Kristi - kgoodm <[EMAIL PROTECTED]> wrote: > I asked this question about a week ago but still have not

Re: localtime ()

2002-10-28 Thread Greg Oliver
code/language/number formatting, etc..) should be set to in the interpreter. Try it and see if it works. If not, or the time is different, you may want to read 1perldoc perllocale` and see what applies to you. -Greg On Mon, 28 Oct 2002 09:38:18 -0600 Goodman Kristi - kgoodm <[EMAIL PROTEC

Re: LOCALTIME question

2002-10-22 Thread Greg Oliver
Your locale is not set to CST6CDT. See 'perldoc perllocale' -G On Tue, 22 Oct 2002 13:38:47 -0500 Goodman Kristi - kgoodm <[EMAIL PROTECTED]> wrote: > My localtime function returns this: Tue Oct 22 18:30:53 2002 > > > I am in the Central Time zone and my machine time (net time at DOS > pro

Re: Missing Bracket

2002-10-22 Thread Greg Oliver
If you have no '{}'s in mid-line comments, you could - #!/usr/bin/perl -w use strict; my ($open, $close) = (0,0); while( <> ) { $open += () = $_ =~ m'{'g unless /^#/;; $close += () = $_ =~ m'}'g unless /^#/; } print "Opens: $open\nCloses: $close\n"; # bracket_check.pl < filename -G On T

time references

2002-10-18 Thread Greg Oliver
on CPAN. The process I am executing takes ~1 second to run, so after I have the script sleep(3) to cut down on the resources. Is there something simple I am missing here that I could use to do what i want? Thanks, Greg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: time references

2002-10-18 Thread Greg Oliver
Beautiful! Cuts the CPU from 100% to nil for that second that was chewing the time - I would have never thought of it though. Pretty new to programming and don't have the full mindset yet. Thanks, Greg On Thu, 17 Oct 2002 20:13:57 -0500 James Edward Gray II <[EMAIL PROTECTED

Re: session id

2002-09-09 Thread Greg Oliver
http://www.perldoc.com/perl5.6.1/lib/CGI.html should get you what you need.. -G On Mon, 09 Sep 2002 19:18:43 + Mariusz K <[EMAIL PROTECTED]> wrote: > Hi:) > I want to be able to track the user as he goes from one pae to another. I > heard that sessionID are used for that purpose. I was t

Re: Hash of Hashes woes...

2002-09-04 Thread Greg Oliver
yntax to save on memory.. this is a 4500 element that can grow quite, so the size of the reference I pass to the threads is important since they are copied into each thread. I was just trying to simplify for the example.. Thanks, Greg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Hash of Hashes woes...

2002-09-04 Thread Greg Oliver
} > > > > > > > > sub SomeSub { > > my ($refdata) = @_; > > my ($cty, $dom, $eng) = @{$refdata}; > > . > > (modify some data) > > . > > $Results{ $cty }{ $dom }{ $eng } = $newdata; > > } > > if $newdata contains anything

Hash of Hashes woes...

2002-09-04 Thread Greg Oliver
ng } = $newdata; } well, when I get the keys/values at the end of the program, they are still from the original hash creation. Ie, they all still equal "3"! Anything simple I am missing? BTW: I am also using threads with the Thread::Pool, Thread::Use, and LWP::UserAgent modules. Th

Re: Upgraded to 5.8 problems

2002-08-03 Thread Greg Matheson
is 5.8.0? Presumably Time::HiRes is a 5.8.0 module. If not, can you run perl56? YOu can do unshift @INC to prepend paths to search for modules first. And what is a loadable object? I don't understand your problem either. -- Greg MathesonRather tha

Re: Perl programmer born and bred

2002-06-21 Thread Greg Matheson
wer is d), but Larry Wall doesn't seem to crack so many jokes nowadays. Perhaps he is older and wiser. Perhaps his role as God with the Apocalypses, he doesn't need it any more and can leave it to his Prophet, Damian Conway with the Exegeses. Conway's humor seems to be in th

opening text file

2002-05-30 Thread Greg D .
Hello, I am trying to open up a text file where each field is parsed by |. the problem is that its only reading the first line in the text file. I want it to loop throughtout the the textfile and insert in a DB. ANyhelp is appreciated...thnx the code is: open(GD, "$ktjpath/$ktjlist") || &dea

split

2002-05-22 Thread Greg D .
Hello, I have a script which reads a list and then puts it into an array which is then inserted into a mysql DB... i was having problems with the part that reads the list and then splits up the list that is parsed by | ..any help would be appreciated open(GD, "$path/$list") || &death("Can't

Re: [Fwd: Perl documentation]

2002-05-14 Thread Eley Greg
Sorry I have not replied in a while, my email went down for the better part of the day. Thank you all for the useful suggestions. I'm sure I will get used to it after a while. Greg drieux wrote: > > On Tuesday, May 14, 2002, at 10:18 , Eley Greg wrote: > > > Thank yo

[Fwd: Perl documentation]

2002-05-14 Thread Eley Greg
: > > On Tue, 14 May 2002 12:51:59 -0400 "Eley Greg" <[EMAIL PROTECTED]> wrote: > > > I am transitioning from Java to Perl and having a hard time rapidly > > searching the documentation. Is there a documentation system akin to > > Java or Python that makes

Perl documentation

2002-05-14 Thread Eley Greg
GREATLY appreciated. Greg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

News Group?

2002-05-04 Thread Greg Willings
Hi, Is there a Perl News Group? Thanks KH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

A very beginner

2002-05-04 Thread Greg Willings
Hi, I'm a beginner that doesn't even have perl yet. I woul like to know whether Perl is faster or Java for business applications. Thanks KH -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

split array

2002-05-01 Thread Greg D .
Hi, Is there any way i can split an array that contains information that i got from the mysql database? here's the code: while(my @data = $sth->fetchrow_array){ print "@data\n"; right now its prints out for example: 1 greg [EMAIL PROTECTED] 1234 2 john [EMAIL PR

Re: How to check installed Modules in perl

2002-04-17 Thread Greg Matheson
o sure of how a modules gets included in this list, because there are modules in the list which I don't believe I installed myself. -- Greg Matheson It was said a million monkeys on a million typewriters Chinmin College would eventually write the works of Shakespeare.

Re: HELP with accessing HTML page to automate Login using HTML::Form

2001-12-17 Thread Greg Meckes
>request($req)->as_string; } else { print "Scotty: Something happened to the script. Spock, check the dilithium crystals.\nSpock: Check them yourself.\nKirk: Don't make me come down there."; } #END Greg --- Guy Davis <[EMAIL PROTECTED]> wrote:

Re: Using CGI locally

2001-11-29 Thread Greg Meckes
Yes, you can download Apache and install it. You then can install Perl (if it's not installed with Apache) and run CGI scripts on your box like any web server. Greg --- Clive Lansink <[EMAIL PROTECTED]> wrote: > I know that when I call up a local HTML file from within Intern

Re: print chomp

2001-11-29 Thread Greg Meckes
How about: print reverse(chomp @lines = ); ? Greg --- Sukhpreet Singh <[EMAIL PROTECTED]> wrote: > Why can't I do this? > > print chomp reverse(@lines = ); > > or > > print chomp(reverse(@lines = )); > > I get > > Can't modify reverse in c

checking if a file exists

2001-11-22 Thread Greg . Froese
How would I check if a certain file exists in a certain directory? I'm already using File::Find to process a bunch of mp3's, and before I move/copy them to a different folder, I want to check if the file already exists. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

directories

2001-11-21 Thread Greg . Froese
what is the best way to check for the existence of a directory? (windows/Linux) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

size limitations

2001-11-14 Thread Greg Sarsons
he hash that is printed out has varied from 270 minutes to 311 minutes. Interestingly enough all the data is identical until up until the dump ends. When the parsing is done the contents of the hash are printed and this is when I discovered the difference. Ideas? Greg -- To unsubscribe,

Re: Array problems!

2001-11-13 Thread Greg Meckes
r the $b array just: while (defined($b=)) { if ($b =~ /^Open Table/){ $c = index($b, "As"); $b = substr ($b,12, $c-14); print "$b\n"; push(@TheNewArray,$b); } Hope that

getting date from STDIN problem

2001-11-09 Thread Greg Sarsons
put in the hash. I know it isn't bullet proof what I've got now ... ie if the entries are not starting at midnight and not occurring constantly. I can't see to grab the date ... just day is important and compare it. Maybe I'm going about this wrong. Greg #!/usr/bin/perl -w

RE: Off-Topic (200%) - Where are you from?

2001-11-09 Thread Greg . Froese
Winnipeg, MB, Canada -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

program help -> regular expressions

2001-11-08 Thread Greg Sarsons
is not TCP or UDP say ICMP as the format of the line changes at bit. There is no port numbers. With either TCP,UDP, or ICMP the 3rd line of each dump is not required. If someone could help me with the structure/setup of this ... extracting the data I would appreciate it. Greg PS is there a siz

Re: Perl with Java

2001-11-03 Thread Greg Meckes
ome I'm sure....but this is what we have been facing. greg --- pc <[EMAIL PROTECTED]> wrote: > How widely is Perl Used in Java Shops? > > Pc > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http

Using DBD

2001-11-02 Thread Greg . Froese
I'm writing a cgi script that connects to an access DB in windows using DBD::ODBC. the program works great from the command line, but when I try to run it from the browser, this is what I get DBI->connect(mycddb) failed: [Microsoft][ODBC Driver Manager] Data source name not found and no defau

Please remove me from the list

2001-10-31 Thread Greg Tomczyk
unsubscribe -- Gregory D. Tomczyk IBM - Contractor (503) 578-5390 [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

find placement of one string in another

2001-10-30 Thread Greg . Froese
How do I find where one string is in another? if i have $test = "one day I went to the zoo"; and I want to find how many characters into $test the word "went" is, how do I go about that? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: No such file or directory exists

2001-10-24 Thread Greg . Froese
elementary? oooh, that hurts =) but you are right, I should have been using -w Peter Scott <[EMAIL PROTECTED]> 10/24/2001 10:03 AM To: [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject:Re: No such file or directory exists At 09:01 AM 10/24/2001 -0500, [

RE: Win32::Setupsup -Can Mouse action be sent to a windowasSendKeys sends some key strokes to a wi

2001-10-19 Thread Greg Wardawy
ed by their counterparts above: MouseClickScreenSend a left click to specified screen coordinates. MouseDblClickScreen Send a left double click to specified screen coordinates. Greg >>> "Greg Wardawy" <[EMAIL PROTECTED]> 10/19/01 01:48PM >>> >>&

RE: Win32::Setupsup -Can Mouse action be sent to a window asSendKeys sends some key strokes to a wi

2001-10-19 Thread Greg Wardawy
rol by Acrasoft. You can find the information and the trial version at http://www.acrasoft.com/ . Greg > > You can use Win32::OLE as a way to get to an AutoIt control. AutoIt can > do all kinds of things with external windows. > > [EMAIL PROTECTED] > All opinions are my

Re: accessing environment variables

2001-10-19 Thread Greg . Froese
Thanks Brian and Marcus. $^O is exactly what I needed. _brian_d_foy <[EMAIL PROTECTED]> 10/19/2001 08:44 AM To: [EMAIL PROTECTED] cc: Subject:Re: accessing environment variables In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Greg F

accessing environment variables

2001-10-19 Thread Greg . Froese
How do I access Windows environment vars? I want to be able to test whether I'm in Windows or Linux, and this seems like a good way to do it. If there is an easier/better way, I'm all ears. Thanks Greg

Inserting records into database

2001-10-05 Thread Greg . Froese
I'm using Win32::ODBC and trying to insert a record into an access database. This is the error I'm getting. SQL failed. Error: [-3035] [1] [0] "[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query." and this is the code I'm using #Opening database if (!($db = new

posting to a URL and retreiving information

2001-10-04 Thread Greg Puleo
with ASP (using the compenant ASP tear), but i'm loathe to use it. any help out there? greg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Connecting to an Access/MySQL database

2001-10-03 Thread Greg . Froese
what module(s) would I need to connect to an access database? and if I code an app that uses an access database, can that be easily changed to MySQL or whatever just by changing the connect string? TIA Greg

Reusing same output line

2001-09-26 Thread Greg . Froese
ng is possible with perl. Thanks Greg

arrays

2001-09-25 Thread Greg . Froese
are there multi-dimensional arrays in perl?

parsing strings

2001-09-25 Thread Greg . Froese
Hi, I've been programming for a number of years, but I'm VERY new to Perl, and it looks like a lot of fun. However, I'm very much in the learning stage, so please be patient, I'm still learning all the keywords etc... I'm curious how I can parse part of one variable into another ex: $part1 =

  1   2   >