Re: Installing and configuring DBI and DBD::Oracle

2001-06-08 Thread Ken
I am going to assume you installed the precompiled binaries from active state. Type in at a command prompt window: perl -v Look for the line that mentions which binary build it is... Mine says: "Binary build 626 provided by ActiveState Tool Corp" If yours says 6xx you want the following link: h

Re: regex matching

2001-06-14 Thread Ken
\d only matches one digithere's a way to extract each number from an ip: use strict; my( $ip ); print "Enter a string with an IP:"; $ip = ; $ip =~ m/(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})/; print "$1\n"; print "$2\n"; print "$3\n"; print "$4\n"; Or if you just want the ip from the line: u

Re: regex matching

2001-06-14 Thread Ken
Doesn't {1,3} mean minimum of 1 and maximum of 3 of whatever character comes before the {}'s? I ran this code with the following ip: 192.168.0.34 It works fine. - Original Message - From: "John Edwards" <[EMAIL PROTECTED]> To: "'Ken'" <

Re: regex matching

2001-06-14 Thread Ken
Ok, strike my previous comments. My apologies for wasting your time. - Original Message - From: "Ken" <[EMAIL PROTECTED]> To: "John Edwards" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 9:45 AM Subject: Re: regex matchi

Re: Another Regex Question

2001-06-21 Thread Ken
One thing to do would be to test for Tide in the line(Assuming all tide data ends with the word "Tide") right away...then do special stuff for each case in an if: if( /Tide$/ ) # If last word in line is Tide { } else # Must be lunar { } And just a note, if you're just going to put the date a

Re: Simple Split Question

2001-06-29 Thread Ken
Well, the reason it's not working is that there is only one Dimview between pairs, for a hash you need seperators between all elements. Here's a way to do it, although I bet others can come up with a quicker/more efficient way: my (%hash); $_ = 'DimView 1 "All" DimView 2 "Some" DimView 3 "Most"

Re: string position

2001-07-05 Thread Ken
Oh oh oh! I want to try! use strict; my( $var, $long_var ); $var = '123456'; $long_var = ' ' x 19 . $var; print "$long_var\n"; *in the distance you hear the sounds of someone beating something with a stick* - Original Message - From: "F.H" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> S

Re: Text file parsing - one chunk v char by char

2001-07-05 Thread Ken
$/ = "¬"; Then while() will only bring in each record. - Original Message - From: "Mike Breeze" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 05, 2001 1:23 PM Subject: Text file parsing - one chunk v char by char > Hi there, > > I'm writing some code that has to pa

Re: padding numbers with spaces

2001-07-06 Thread Ken
Try %5.1f in your sprintf The first number is the width of the field, in this case your format, @, is specifying 5 wide. Alernatively you could make your format @##.# and get rid of the sprintf $average = $total / $scores; - Original Message - From: "David Gilden" <[EMAIL PROTECTED

Re: MID in Visual Basic...

2001-07-12 Thread Ken
susbtr is almost identical to mid, but better (isn't that true for most of perl?) perldoc -f susbtr - Original Message - From: "Sebadamus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 12, 2001 9:24 AM Subject: MID in Visual Basic... > In Visual I used the MID functi

Re: MID in Visual Basic...

2001-07-12 Thread Ken
Ack! Typo! substr - Original Message - From: "Ken" <[EMAIL PROTECTED]> To: "Sebadamus" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, July 12, 2001 12:18 PM Subject: Re: MID in Visual Basic... > susbtr is almost identical to mid

Re: cannot fix an error - "Bus error (core dumped) "

2001-07-31 Thread Ken
? Ken - Original Message - From: "Narendran Kumaraguru Nathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 31, 2001 5:09 AM Subject: cannot fix an error - "Bus error (core dumped) " > Hai Guys, > > I am compiling a perl code (

Re: boolean logic - what am I doing wrong?

2001-08-03 Thread Ken
You forgot the attlist[$x] =~ before the second match. - Original Message - From: "Ron Woodall" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 02, 2001 10:51 AM Subject: boolean logic - what am I doing wrong? > Hi All: > > A bit of a conundrum here. > > while (att

Re: Tertiary Operator Question

2001-08-13 Thread Ken
It's a precedence problem. I've been trying to parenthesize this according to the precedence chart in "Programming Perl" but haven't been having any luck. Maybe someone elses brain is working better than mine and can tell us how this is being seen by Perl with parens! If you put parens around t

Re: Tertiary Operator Question

2001-08-13 Thread Ken
When I run the line outputted from the Deparse inplace of his original code I get errors! What's up with that? #!/usr/bin/perl -w use strict; my $num=3; my $nextnum; ((($num == 3) ? ($nextnum = 4) : $nextnum) = "unknown"); print $nextnum; - Original Message - From: "Paul Johnson" <[EM

Re: Printing has me confused

2001-05-31 Thread Ken
y01"; $cntr=1; $new_fn="$ltr.$rname.$numltrs.$rdate.$pdate.$cntr"; print "new_fn=$new_fn"; I get this as the result: .4.30May01.31May01.1ILM The results aren't identical but close enough to assume there is a control code in there somehwere. If you're reading

Re: sprintf

2001-05-31 Thread Ken
%s prints out strings For a complete list look at: perldoc -f sprintf Skip to the part that begins(about the second 24 line page): Perl's "sprintf" permits the following universally-known conversions - Original Message - From: "Nichole Bialczyk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

Re: printf and other stuff

2001-06-01 Thread Ken
Remove the ()'s and it works. For the 0's: printf "On %02d/%02d/%04d At %02d:%02d you wrote:\n\n", $month, $mday, $year, $hour, $min; see perldoc -f printf for more info. - Original Message - From: "David Gilden" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 01, 2001 1:05

Re: i'm warning you, this is a toughie!

2001-06-04 Thread Ken
Hope this helps! Ken - Original Message - From: "Nichole Bialczyk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 3:33 PM Subject: i'm warning you, this is a toughie! > the bossman has requested the following: > > he wants my l

how to use socketpair to run another program

2002-07-31 Thread Ken
ow to set this up. Using the example in the Perl Cookbook (p. 575), here's the line that stumps me. socketpair (CHILD, PARENT, AF_UNIX, SOCK_STREAM, PF_UNSPEC) this is what I tried, along with other variations (no laughing please) socketpair (CHILD |- "bl -d /usr/local/share/bl"

newbie prob/different flavor

2001-06-25 Thread KeN ClarK
ant to reinvent the wheel when I am just beginning to learn to walk... Thanks. Ken -- _ [EMAIL PROTECTED] http://www.quantifier.org _ All life evolves by the differential survival of replicating entities. -- Dawkins

from one problem to the next emumail...

2001-06-26 Thread KeN ClarK
? HAS ANYONE had this issue? Ken -- _ [EMAIL PROTECTED] http://www.quantifier.org _ "Ada is PL/I trying to be Smalltalk. -- Codoso diBlini

Newbie system call question

2001-07-18 Thread Ken Cole
dev/null is an invalid argument. It is a standard argument for the app telling it where to "put" its output. It doesn't matter in what order I put the arg I still get the same error message. I am so confused :-( Ken Cole -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Newbie system call question

2001-07-18 Thread Ken Cole
; > But this is bad since poor perl will do its best collecting data that > you'll throw away anyways. Will stick with 1. > 4. Probably there are 10 MWTDI. ditto Thanks for the help. Much appreciated. ken Cole -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

I need to create a module - I think - and don't know how

2001-07-19 Thread Ken Cole
? If so how? Do I declare it as a function in the module and then call it from my other scripts? All help as usual gratefully appreciated. Ken Cole -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

help with email submit

2001-07-21 Thread ken clark
Help. I am very new. I am using this script to create a guestbook entry; however I want it to ALSO email the results to me. I am willing to figure this out myself if someone can point me in the right direction. There are several late night comments included. Ignore those of course... Ken

RE: I need to create a module - I think - and don't know how

2001-07-22 Thread Ken Cole
ut basic packages, please let me know That would be good. I did finf some other writings on packages/modules but they too have left me wondering. > you can view some other tuts i wrote on http://japh.nu already > (or http://japh.nu/index.cgi if you want to see the > experimental/work in > progress stuff ) > Thanks Ken -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reading A File From A Remote Host Using Sockets.

2001-08-29 Thread Ken Hammer
a SSL port, or is there another way I can accomplish this task. Thank you. -- Ken Hammer Information Technology Central Services University Of Michigan [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Passing Wild Cards to System Commands

2001-09-05 Thread Ken Hammer
his could work. Escaping the "*" (\*) did not help. The "?" wildcard recieved the same treatment. Ideas? -- Ken Hammer Information Technology Central Services University Of Michigan [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Passing Wild Cards to System Commands

2001-09-05 Thread Ken Hammer
Thank you James, that did the trick! "Kipp, James" wrote: > > try using the glob() function.. > it does this nicely > > > -Original Message- > > From: Ken Hammer [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, September 05, 2001 4:54 PM > &

Using SSL and Perl to Gather Process Information

2001-05-16 Thread Ken Hammer
ction? Thank you. -- Ken Hammer Information Technology Central Services University Of Michigan [EMAIL PROTECTED]

question

2001-05-31 Thread KeN ClarK
mplate mail that was sent all resided inside. Ken -- _ [EMAIL PROTECTED] http://www.quantifier.org _ Put your trust in those who are worthy.

my own answer

2001-05-31 Thread KeN ClarK
post about whether syntax of snippet with mail data being correct--it is. I didn't read his mail but did change the script to send to me instead. It works!!! Thanks for everything else... Ken -- _ [EMAIL PROTECTED] http://www.quantifie

getting pop & forwarding it to local

2001-05-31 Thread KeN ClarK
pretty much zero perl experience. BUT WILLING TO LEARN, and wanting... Ken -- _ [EMAIL PROTECTED] http://www.quantifier.org _ If you want to make God laugh, tell him about your plans. -- Woody Allen

MAIL::POP3

2001-05-31 Thread KeN ClarK
error I get when running perl -cw POP3Client.pl is "Can't locate Mail/POP3Client.pm in @INC..." Well, once again, I think I see where .pm is a perl module (I told you I was a beginner...) Need direction, guidance, counseling, advice, and stern hand-slapping. Ken -- _

Re: MAIL::POP3

2001-06-01 Thread KeN ClarK
Fetchmail is working wonderfully, but I am going to give Mail::Audit a go. I appreciate everyone's advice. Ken On 1 Jun 2001, Piers Cawley wrote: > Paul Johnson <[EMAIL PROTECTED]> writes: > > > On Thu, May 31, 2001 at 08:58:40PM -0400, KeN ClarK wrote: > > >

Re: append a file to another file - copy

2001-06-01 Thread KeN ClarK
So anycrack could write to it prior to it being 'moved' right? And then you have non-world-writeable data under the premise it is untampered. What's the difference? Ken On Fri, 1 Jun 2001, Nichole Bialczyk wrote: > well, so the copy didn't work. it required me to place

perl to build html

2001-06-03 Thread KeN ClarK
create the page raw. Assuredly this can be done. W/Linux, I've figured out how to recreate the page all the way to reading the *.mp3 contents...but then I get stuck. I have limited language experience. Any suggestions? Ken -- _ [EMAIL PROTECTED]

RE: Win32::NetAdmin

2001-09-21 Thread Ken Cornetet
>From the Win32 API: SV_TYPE_WORKSTATION 0x0001 All LAN Manager workstations SV_TYPE_SERVER 0x0002 All LAN Manager servers SV_TYPE_SQLSERVER 0x0004 Any server running with Microsoft SQL Server SV_TYPE_DOMAIN_CTRL 0x0008 Primary domain controller

Matching a String From The Bottom Of A File

2001-10-05 Thread Ken Hammer
he bottom of the file for the first occurrence of a string. 2) Why does the system command print to STDOUT when using "qx" in place of "glob" instead of creating the file? -- Ken Hammer Information Technology Central Services University Of Michigan [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

2001-11-09 Thread KeN ClarK
Athens, GA _ [EMAIL PROTECTED] http://quantifier.org _ There was a man who enjoyed playing golf, and could occasionallly put up with taking in a round with his wife. One time (with his wife along) he was having an extremely bad round. On the 12th

ugh. @INC

2001-11-15 Thread KeN ClarK
p3's. I am trying to use the MPEG::MP3Info module which I successfully grabbed from CPAN. Please point me on the right track. Ken _ [EMAIL PROTECTED] http://quantifier.org _ We must accept life for what it actually is -- a challenge to our qualit

Re: ugh. @INC

2001-11-15 Thread KeN ClarK
i'm afraid that's possibly my error. see, all i've used so far was CGI.pm. I went to cpan as root and got it. So where ever that would put it. let me look. that makes obvious sense. ken _ [EMAIL PROTECTED] http://quantifier.org _

RE: ugh. @INC

2001-11-15 Thread KeN ClarK
my big mistake and a wonderful learning experience. thanx ken _ [EMAIL PROTECTED] http://quantifier.org _ The only "intuitive" interface is the nipple. After that, it's all learned. -Bruce Ediger, in comp.os.linux.misc, on X int

capture song title

2001-11-16 Thread KeN ClarK
I want to capture the title of the current song I have running on my box through mpg123 and redirect it to a file. In this process, I don't want the /long/path/to/song but just the song.mp3. Is it possible to capture the song title this way? Ken _ [EMAIL PROT

Timing Out A Loop

2001-11-29 Thread Ken Hammer
";); Loop until you reach 10 seconds { my $response = $ua->request($req); my $content = $response->content(); } -- Ken Hammer Strategic Projects And Planning University Of Michigan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Timimg Out A loop

2001-11-30 Thread Ken Hammer
; > > my $url = "http://$host:$port/page";; > my $ua = LWP::UserAgent->new(); > $ua->agent("Godzilla/v911 Mithril"); > my $req = HTTP::Request->new(GET =>$url); > > $req->referer("http://nowhere.com";); > > Loop until

Suggestions For Flexible Text Output

2001-12-07 Thread Ken Hammer
l the different options? Is there a module out there that can help? I'm having dificulty getting Format::Text to do what I want. -- Ken Hammer Strategic Projects And Planning University Of Michigan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

reading/writing to COM port

2001-12-11 Thread Ken Lau
A couple of questions about reading and writing the COM port in Windows. I have opened the COM with $fh = new FileHandle "+> COM1" ; and connected another system running hyperterm and have seen output from my perl script. There was some difficulty in getting the port settings right as when I

extract uptime for linux box w/perl

2001-12-19 Thread KeN ClarK
t saved in a file? if there's a better way to do this, please advise. (after ghosting on this list for awhile, I see how there's alot of ways to do anything...) also, i'd like more or less pointers so i can kludge through this one myself. ken __

Re: Output to email

2001-12-28 Thread KeN ClarK
n", $Mail::Sendmail::log; > > Thank you to everyone that has been helping me with this first of many > scripts. It has definitely been a learning experience > > > KeN _ http://quantifier.org GnuPG: 7C828670 2:15pm up 7 days, 22:01 You are so boring that when I see you my feet go to sleep. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

redirect to URL[linux,apache]

2001-12-30 Thread KeN ClarK
orm(); **end snip** I've also looked at the openwebmail list and had no luck. I asked a similar question to beginners-cgi but received no answer. ANYone out there to point me in the correct direction??? even if another list... Thanks (be gentle...) KeN

fixed! redirect to URL[linux,apache] (fwd)

2001-12-30 Thread KeN ClarK
myurl = "http://www.quantifier.org/phpquant/";; print header, start_html ('TESTING!!'), h2("Location: $myurl\n\n"), end_html; However, that wasn't what I needed... Thanks! KeN _ http://quantifier.org GnuPG: 7C

RE: C vs. Perl

2002-01-02 Thread KeN ClarK
would it be rude to ask ya'll to take this thread elsewhere. this list is so high-traffic already. if as a fledgling newbie i've overstepped any bounds, my apologies. tia, ken On Wed, 2 Jan 2002, Brett W. McCoy wrote: > On Wed, 2 Jan 2002, Maciejewski, Thomas wrote: >

Re: Is there a way to rsh (or remsh) in Perl?

2002-01-04 Thread KeN ClarK
search.cpan.org. it's wonderful. http://search.cpan.org/search?mode=module&query=rsh ken On Fri, 4 Jan 2002, Daryl J. Hoyt wrote: > I have several scripts that I would like to get data from several machines. > I have seen the ssl and telnet modules, but is there one for rsh.

pattern matching for ip addresses in a text file

2002-01-07 Thread Ken Yeo
Hi, What is the best pattern matching for ip addresses? I tried $var =~ /\b\d{1-3}\.\d{1-3}\.\d{1-3}\.\d{1-3}\s/ but the {1-3} didn't work, please advise, TIA! Ken Yeo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

return # of minutes since 5:00pm Jan 18, 2002 in perl on linux box

2002-01-31 Thread KeN ClarK
subject fairly sums it up. If I use localtime to get what time it is right now how can I determine the number of minutes between a KNOWN moment, such as above, and say, at the time the script is run? So far I have nothing and am perplexed... _ http://quanti

Re: Running the system command

2002-02-05 Thread KeN ClarK
perldoc -f "system" and it is system("command"); or you could use backticks as in: $now = "the time is now ".`date`; i bet someone will comment about the difference between using system and backticks (don't backticks capture the standard output?) -k And on 9:49am, Ned Cunningham jibba jabb

class DBI postgres date time format

2009-03-17 Thread ken uhl
tuid); ... 313 $delta_row->update(); 314 $delta_row->commit(); ( line 306 crashes with invalid SQL command line value, obviously, but what goes here? ) ? TIA, Ken Uhl, UC Berkeley -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Understanding recursion

2009-07-10 Thread Ken Slater
. On each call 'binary' $b is set as follows (but does not start returning values until the 6th call): 1. $b = 1 (37 % 2) 2. $b = 0 (18 % 2) 3. $b = 1 (9 % 2) 4. $b = 0 (4 % 0) 5. $b = 0 (2 % 0) 6. returns 1 immediately Now the stack starts unwinding and appending the $b valu

Scrolled Frame in Tkx

2009-08-24 Thread Ken Slater
ybody have any ideas? I am just a beginner with Tkx and wasn't sure where to post any questions. Any help is appreciated. Thanks, Ken == Code = use strict; use warnings; use Tkx; use Data::Dumper; Tkx::package_require("BWidget"); # new_Scroll

Re: dinamic cgi with perl

2008-03-14 Thread Ken Foskey
On Fri, 2008-03-14 at 15:14 +0100, Pau Marc Munoz Torres wrote: > To solve it i was thinking on introduce a javascript code into my cgi, but i > don't know how to pass the variable info between perl and javascript. AJAX - I ended up hand coding my AJAX from scratch but there is a module that I

xml::twig help

2008-03-17 Thread Ken Foskey
I am extracting addresses from an XML file to process through other programs using pipe delimiter the following code works but this is going to get 130,000 records through it it must be very efficient and I cannot follow the documentation on the best way to do this. After this simple one is progr

Re: xml::twig help

2008-03-17 Thread ken Foskey
Updated to fix memory problem, you have to purge. Takes over 30 minutes for 120K records. I am sure that the whole process can be done better with a good understanding of the module. Will benchmark XML::Rules though. On Tue, 2008-03-18 at 00:55 +1100, Ken Foskey wrote: > I am extract

Re: xml::twig help

2008-03-18 Thread ken Foskey
. Definitely worth the time learning XML::Twig. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: diff of two files

2008-03-20 Thread Ken Foskey
d read them together. if the records match then read another pair, if they don't then output the lesser value of the two, read appropriate file and retry. Good luck Ken -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: How to make all files in one directory to an array

2008-03-20 Thread Ken Foskey
On Thu, 2008-03-20 at 18:20 +0530, sivasakthi wrote: > Hi all, > > How to form array by using the files available in particular directory ? > > for example, /tmp contains the following files.. > > #ls /tmp > example.txt > file1.txt > file2.txt > file3.txt > sample.txt > www.txt > zzz.txt > >

Re: how do check th argument is passing to running file

2008-03-24 Thread ken Foskey
] ) { die "Two arguments required\n sample.pl mm"; } -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: PerlScript - FileSystemObject - Windows Scrpting Host [SEC=UNCLASSIFIED]

2008-04-03 Thread Ken Barker
get drunk and croon as much as they like. -- Terry Pratchett in Sourcery ___ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ForWriting is not defined. You should check the values returned CreateObject and CreateTextFile. Cheers, Ken. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: dinamic cgi with perl

2008-04-03 Thread ken Foskey
my script I learnt AJAX from Mastering Ajax tutorial in developerworks http://www.ibm.com/developerworks/library/wa-ajaxintro1.html There is also a module cgi::ajax in CPAN that you might want to look at. -- Ken Foskey FOSS developer

Re: Perl Stops Processing

2008-04-03 Thread ken Foskey
ng? Look up start in the command shell. http://www.ss64.com/nt/start.html -- Ken Foskey FOSS developer

Re: Constant not working in hash...

2008-04-04 Thread ken Foskey
id this confusion, add a "+" before the constant, > > my $part = $parts{ $key }{ +PART_NUMBER }; Is there any real advantage of use constant PART_NUMBER => 'P/N'; over my $PART_NUMBER = 'P/N'; Yes I know that it can be modified but conventions such as upper

Re: problem with the script in counting

2008-04-05 Thread ken Foskey
On Sun, 2008-04-06 at 05:39 +0530, pradeep reddy wrote: > Can this impletemented in shell script alsso? Why do you ask this in a perl list? look at `uniq -c`. -- Ken Foskey FOSS developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] h

DBI question

2008-05-21 Thread Ken Foskey
connection for being 'valid' still and then if it is not valid, reconnect, sleep then try again for N times then give up entirely issuing message to support. I saw mention of a state variable but this not on the connection. Any help to make this work would be appreciated. Thanks Ken

Re: DBI question

2008-05-21 Thread Ken Foskey
On Wed, 2008-05-21 at 23:53 +1000, Ken Foskey wrote: > I have a program that will run literally for days and days. It monitors > logs by file tail. Problem is that I think the DBI is causing problems. > It is constantly connecting and reconnecting to DB2 for every > transaction.

CGI-Ajax-0.701 - How Do I Capture Table Of Data Via Right-Mouse-Click, Then, 'Export to Excel'

2008-05-28 Thread ken . stephani
I build a table, but, when I try to export to MicroSoft Excel I see Excel start, but then I get a "Web query returned no data" popup. Thank you very much, in advance, for any help!! Regards!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:

Re: difference between FTP and SFTP

2008-05-29 Thread Ken Foskey
On Thu, 2008-05-29 at 11:00 +0530, Rajnikant wrote: > Hi everyone, > > I have question about SFTP's connection modes. FTP can use Active or Passive > mode for same. > > Is SFTP also supports such modes? It does not need the distinction. SFTP connects via ssh on port

Re: No such file or directory

2008-05-29 Thread Ken Foskey
On Thu, 2008-05-29 at 11:45 +0100, Mimi Cafe wrote: > my script is in the same directory as my files, but it cannot find the file > ABC.txt in open() below. > > foreach my $supplied (@ARGV){ > # Output file name set of element currently processed. > > # Open file to read from. > open (INPUTFI

Re: 3270 connection via perl

2008-05-29 Thread Ken Foskey
ow how, just giving you something to think about and ask about. Can you remotely connect to the database and avoid the applications? Ken -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: how does file gets send to remote machine using perl

2008-05-29 Thread Ken Foskey
On Thu, 2008-05-29 at 19:46 -0400, Richard Lee wrote: > Hi, > > Someone wrote a perl script which manipulate a file and sent to number > of remote system. > I ported that exact script to my local machine but I don't see anything > going out. > Peeking into the script, I see no special module be

CGI FORM action

2008-06-13 Thread ken uhl
This goes back to page one. I want it to continue - checking page params - specifically to retrieve selected check boxes, but It does not progress. Any Help would be greatly appreciated . Ken Uhl UC Berkeley. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Re: CGI FORM action

2008-06-16 Thread ken uhl
ts. The mystery of page to page flow continues to elude me. Ken Uhl Gunnar Hjalmarsson wrote: ken uhl wrote: my Forms are not "acting" nicely, page to page flow is not correct, Page one prompts for search criteria: ... $scriptname = $q->script_name(); ... ... The su

Re: Weekly list FAQ posting

2004-04-05 Thread Ken Wolcott
g like: Subject: [Beginning Perl] Weekly List FAQ posting Thanks, Ken -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: How do you invoke a Clearcase View?

2004-05-20 Thread Ken Wolcott
tem call or backticks. I do all kinds of ClearCase things with perl, but not via the ClearCase CPAN module(s) such as what can be found at: http://cpan.uwinnipeg.ca/search?query=clearcase&mode=dist But I'll be looking into those as I find time. Hope this helps, Ken Wolcott -- To

garbage errors when number of characters in script exceeds some number

2004-07-12 Thread Ken Rearick
I wrote an application last week and when I attempted to compile it on both a sun and pc using perl5 I keep getting garbage error message when the character count of the source was greater than about 16,000 characters. If I went into the source and removed white spaces to reduce the character c

Re: garbage errors when number of characters in script exceeds some number

2004-07-13 Thread Ken Rearick
I discovered last night that if I eliminate the switch statements the problem go away. This morning I also tried moving the use switch in side the if blocks containing the switch statements. This also eliminated the problem. "Ken Rearick" <[EMAIL PROTECTED]> wrote in mes

finding Makefiles which containing a backslash continuation character where the next line is blank or whitespace

2004-08-03 Thread Ken Wolcott
so the regex is wrong? The second one incorrectly reports that all Makefiles have one or more lines with continuation (\) characters at the end of the line followed by a blank (or whitespace only) line. Please help, Thanks in advance, Ken Wolcott -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: finding Makefiles which containing a backslash continuation character where the next line is blank or whitespace

2004-08-04 Thread Ken Wolcott
John; Thank you very much for the help...works like a charm...now I'll try to study it carefully to understand how to use this the next time I need something like this... Cool... Ken Wolcott On Tue, 2004-08-03 at 20:20, John W. Krahn wrote: > Ken Wolcott wrote: > > Hi; > &g

how do I handle filenames that have parens?

2004-08-13 Thread Ken Wolcott
Hi; I have two perl scripts. Once calls the other via a ClearCase setview context (like a subshell). The problem: The current scripts do not handle filenames that have parens properly and the parens are obviously mishandled by the shell. The overall goal: What I'm really trying to do is to ge

Re: how do I handle filenames that have parens?

2004-08-17 Thread Ken Wolcott
Randal; Thanks for answer I really needed to hear. Ken On Fri, 2004-08-13 at 18:36, Randal L. Schwartz wrote: > >>>>> "Luke" == Luke Bakken <[EMAIL PROTECTED]> writes: > > Luke> The simple solution is to be sure that single quotes are around

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-11 Thread Ken Wolcott
Ken Wolcott wrote: I suppose it is in bad taste to reply to one's own posting, but I have an update. After reading some in the O'Reilly Perl & XML book, reading the email archives of this mailing list, several FAQS that some people mentioned from the mailing list archives and a

how/where to install xyz.pm from CPAN (no perl Makefile.PL; make; make test; make install)??

2004-10-11 Thread Ken Wolcott
search string would I provide in order to obtain answers pertinent to my question above? I have the 3rd edition of the camel book and refer to it frequently. I have several other perl books (mostly O'Reilly) as well. I don't remember seeing this topic addressed. Thanks, Ken -- To u

Re: how/where to install xyz.pm from CPAN (no perl Makefile.PL; make; make test; make install)??

2004-10-11 Thread Ken Wolcott
Randy W. Sims wrote: On 10/11/2004 11:01 PM, Ken Wolcott wrote: Hi; I see several very interesting CPAN modules regarding Rational/IBM ClearCase. These are just *.pm files. How/where do I install these? I have root privs. I want the modules to be available in the standard place(s). I

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-14 Thread Ken Wolcott
rg/ Ah hah... addendum: http://perl-xml.sourceforge.net/faq/#parserdetails.ini http://danconia.org Thanks for your response. I have bookmarked that faq. I did apply the suggested fix. Ken -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://l

could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-06 Thread Ken Wolcott
g XML tag is not strictly compliant (as " value " is "correct" while " value " is not). I need to preserve the XML output in ClearCase that remains in a human "readable" form, ie: well-formatted... Thanks in advance for your comments and advice, Ken Wolcott

Re: could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.3/XML/SAX; also need some advice about XML parsing modules on CPAN

2004-10-06 Thread Ken Wolcott
Ken Wolcott wrote: Hi; I have a Fedora Core 2 full install to which I installedXML::Simple manually (ie: download, extract, perl Makefile.PL, make, make test, sudo make install). Some of the tests did not run since I did not have Tie::IxHash (?) installed. The error message (could not find

What search string do I use on google or perldoc so that I know how to display a specified range of lines from a file (like sed -n 24, 48p filename)?

2004-10-22 Thread Ken Wolcott
didn't help me understand what perl syntax would give me the desired result that sed does :-( Thanks, Ken -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

perl problems

2004-12-13 Thread Ken Gillett
wn problem with that version of Perl or as usual am I the first to discover a bug in such a widely used piece of software? Ken G i l l e t t _/_/_/_/_/_/_/_/_/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

hash of array

2005-01-16 Thread Ken Gillett
te further as to how this might occur in one script but not the other. Please??? Ken G i l l e t t _/_/_/_/_/_/_/_/_/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

hash of arrays

2005-01-16 Thread Ken Gillett
file it misses the first one. Great. Now I need to figure out how to prevent this. Anyone any ideas on that? Ken G i l l e t t _/_/_/_/_/_/_/_/_/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.

  1   2   3   4   5   >