Re: move data into separate directory

2003-02-06 Thread Rob Dixon
Jose Malacara wrote: >> opendir(DIR, 'data') ... > > This allows me to grab the correct file names from within the 'data' > directory, but I guess that my problem happens when the script > actually goes to parse those files that it only looks for the > filenames locally, rather than in the actual '

Re: Modifying the string entered

2003-02-06 Thread Rob Dixon
R. Joseph Newton wrote: > Rob Dixon wrote: > >> >> my ( $path, $file ) = ( $fullpath =~ /(.*)\/(.*)/ ); >> > > Ah, but that would be cracking the egg at the small end, which only a > barbarian would do )( ;o }) No, not a barbarian, just a rebel. I slice my hot-dog buns on the flat as well :)

Re: a though question of using variable in pattern

2003-02-06 Thread Rob Dixon
Kasi ramanathen wrote: > by using this code i get the right answer, but i want to store the > pattern in the variable and use it, for pattern, it fails. what is > the problem. is it related to priority of operator. > > open(IH, " @a=(); > $v=join(' ',@a); same as $v = "@a"; > while($v=~m/href

Re: move data into separate directory

2003-02-06 Thread Rob Dixon
Rob Dixon made a couple of mistakes in writing: >> >> closedir(DIR); > > Do this after you've finished reading it. (meaning 'directly after you've finished reading the directory' :) > This should work roughly as intended. If you need to know what > your current working directory is, > > use C

Re: Modifying the string entered

2003-02-06 Thread wiggins
On Thu, 6 Feb 2003 12:24:51 -, "Rob Dixon" <[EMAIL PROTECTED]> wrote: > R. Joseph Newton wrote: > > Rob Dixon wrote: > > > >> > >> my ( $path, $file ) = ( $fullpath =~ /(.*)\/(.*)/ ); > >> > > > > Ah, but that would be cracking the egg at t

Re: Modifying the string entered

2003-02-06 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > > You brits, can't you get your hot dog buns pre-sliced over there? ;-) > Not arrogant, just qq[having "self-power" awareness] :) Believe it or not, our 'Sainbury's' supermarket started pre-slicing their hot-dog buns

Premature end of script headers

2003-02-06 Thread zegdatwel
hi, "Premature end of script headers" what can this mean...it's in the error log. When does this happen? I got error 500 when executing script. Martin

Weekly list FAQ posting

2003-02-06 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

help please!

2003-02-06 Thread Benjamin Jeeves
Hi All I have a require statement that is run by my main program but I get a error "did not return a true value at ./connecttime.pl line 26, line 11811302." connecttime.pl is the main program and the script it is executing this to do pattern matching on the file that is passed to connecttime.p

Re: help please!

2003-02-06 Thread Rob Dixon
Benjamin Jeeves wrote: > Hi All > > I have a require statement that is run by my main program but I get a > error "did not return a true value at ./connecttime.pl line 26, > line 11811302." connecttime.pl is the main program and the > script it is executing this to do pattern matching on the file

Re: Premature end of script headers

2003-02-06 Thread Rob Dixon
Zegdatwel wrote: > hi, > > "Premature end of script headers" > > what can this mean...it's in the error log. When does this happen? I > got error 500 when executing script. Check the permission settings on your script. try chmod 755. HTH, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Madhu Reddy
Hi, I did telnet ..i got following error - C: telnet ivhpxc0003.ap.bdi.gte.com 25 Connecting To ivhpxc0003.ap.bdi.gte.com...Could not open a connection to host on port 25 : Connect failed C:telnet ivhpxc0003.ap.bdi.gte.com Connecting To ivhpxc0003.ap.bdi.gte.com...Could not open a connec

RE: Net::FTP troubles

2003-02-06 Thread Rob Das
Sean: I had all sorts of problems with this on NT. Works great on Unix. To FTP to NT: Needs Microsoft IIS (Option Pack?) installed. Once this is set up, the following changes need to be made: q Start up the Microsoft Management Console - Start, Programs, Windows NT 4.0 Option Pack, Microsoft Inter

text manipulation scenario...

2003-02-06 Thread Gorden-Ozgul, Patricia E
I need to construct a working printf statement where each field in a given record would print at a specified position. Each record may or may not contain any particular field but will always begin with .VENDOR.LIBRARY. and end with .VENDOR.XINFO.END. Hope springs eternal for this novice perl scri

sasdata set

2003-02-06 Thread Benjamin Jurado
can anyone point in the direction of converting sasdata sets into text files? thanks -- Benjamin F. Jurado IT&E GMU -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: text manipulation scenario...

2003-02-06 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Gorden-Ozgul, Patricia E wrote: > I need to construct a working printf statement where each field in a > given record > would print at a specified position. > > Each record may or may not contain any particular field but will > always begin with .VENDOR.LIBRARY. and end with .VENDOR.XINFO.END. >

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread dan
I tried telnetting to that host on port 25, it exclaimed "host could not be found". Seems that's your problem. With regards to NET::SMTP and Net::SMTP, since it's on windows, case doesn't really seem to matter. Dan "Madhu Reddy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

do statement

2003-02-06 Thread Benjamin Jeeves
Hi all I have a statement a bit like this while ( ) { do "netbios.pl"; do "udp_port137.pl"; and so on but the second do statement does not execute can anyone tell me why? -- Thank You Benjamin Jeeves -- To unsubscribe

RE: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Timothy Johnson
Are you absolutely sure that this is your email server? Are you using a program like Outlook or Outlook Express, Eudora, Netscape Mail, etc? If so, you should be able to look in your settings for that program to find the SMTP server that it is using. -Original Message- From: Madhu Reddy

Re: how to set up Makefile.pl

2003-02-06 Thread Paul Tremblay
Thanks Bob, and thanks RF. I used seek and tell, and now have the data as part of a module. Paul On Wed, Feb 05, 2003 at 05:13:24PM -0500, Bob Showalter wrote: > From: Bob Showalter <[EMAIL PROTECTED]> > To: 'Paul Tremblay' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: RE: how to set up Ma

Re: text manipulation scenario...

2003-02-06 Thread Rob Dixon
Patricia E Gorden-Ozgul wrote: > I need to construct a working printf statement where each field in a > given record would print at a specified position. Hi Pat. I've been amusing myself with your problem for an hour or so, and although I don't in general approve of handing out ready-made solutio

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread wiggins
On Thu, 6 Feb 2003 17:09:40 -, "dan" <[EMAIL PROTECTED]> wrote: > I tried telnetting to that host on port 25, it exclaimed "host could not be > found". Seems that's your problem. > Not necessarily, unless you are on the same local network as

Re: do statement

2003-02-06 Thread Rob Dixon
Benjamin Jeeves wrote: > Hi all > > I have a statement a bit like this > > while ( ) > { > do "netbios.pl"; > do "udp_port137.pl"; > and so on > > but the second do statement does not execute can anyone tell me why? The program will halt if netbios.pl has an 'exit' or 'die' statement, but it's al

How does one print blocks of text ..

2003-02-06 Thread Jamie Risk
... without encapsulating each line in double quotes? I've seen this, and don't know where. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Madhu Reddy
This script is running where my e-mail client is (MicroSoft Look)... I am not running on remote.. I am running on localNetwork I am using Microsoft Outlook 2002 I used following procedure to get the my-email server name - 1. On Outlook "Tools>options>Mail Setup===>E-mail Accoun

Re: How does one print blocks of text ..

2003-02-06 Thread Jeff 'japhy' Pinyan
On Feb 6, Jamie Risk said: >... without encapsulating each line in double quotes? I've seen this, and >don't know where. With a here-doc: print << "END OF BLOCK"; stuff END OF BLOCK Or with a different quoting character: print qq{ this text is nice isn't it? }; -- Jeff "japhy" Pinyan

RE: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Timothy Johnson
It sounds like your network administrator might not be allowing you to use the SMTP relay internally on your Exchange server. You'll probably have to take that up with him/her. Exchange is different from SMTP but does support SMTP. -Original Message- From: Madhu Reddy [mailto:[EMAIL PRO

Re: How does one print blocks of text ..

2003-02-06 Thread Brent Michalski
print qq( This is all going to "be printed" and so is this and this\n ); or print< cc: (bcc: Brent Michalski/STL/MASTERCARD) Sent by: newsSubject: How does one print blocks of text ..

module to encrypt TCP stream

2003-02-06 Thread Distribution Lists
Hi, using IO:SOCKET I have written a server daemon that listens on a particular port. Is there a module that I can use in my code to encrypt traffic between the client and server ? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Using PGP in a perl script

2003-02-06 Thread Hodgkinson, Bill (MED)
I am trying to use PGP to decrypt an encrypted file and store the standard output of the decryption into several hashes so that I can use the hashes in a password recall script. Example: if you put in a servers name it will tell you the password for that server. the server will be associated with

Quoted and unquoted spilts

2003-02-06 Thread Jamie Risk
How would I split, then push onto a list a variable length text string with quoted portions (example following) so that a split keeps text in quotes together. "keep me together" separate1 separate2 separate3 "keep me together too" separate4 If the above were parsed, I should like to see six sep

Re: Quoted and unquoted spilts

2003-02-06 Thread Jamie Risk
Never mind, although perhaps someone can explain what "split(/''/)" is doing. It satisfies my needs, but I don't know why (emphasis on the '' bit between the / /). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Quoted and unquoted spilts

2003-02-06 Thread Bob Showalter
Jamie Risk wrote: > How would I split, then push onto a list a variable length text string > with quoted portions (example following) so that a split keeps text > in quotes together. > > "keep me together" separate1 separate2 separate3 "keep me together > too" separate4 > > If the above were p

Having problems with unpack and negative numbers.

2003-02-06 Thread Wagner, David --- Senior Programmer Analyst --- WGO
I have a number of files which I have transferred from another system. I am trying to read the data, but running into a problem when I hit what is a negative number (Each field is 4 characters in length). Here is the unpack: @MyWorka = unpack("a8Nsa6a10ssa52H8a4H8H

Re: How does one print blocks of text ..

2003-02-06 Thread Rob Dixon
Jeff 'Japhy' Pinyan wrote: > On Feb 6, Jamie Risk said: > >> ... without encapsulating each line in double quotes? I've seen >> this, and don't know where. > > With a here-doc: > > print << "END OF BLOCK"; > stuff > END OF BLOCK Note that the quotes around the end marker string affect how the body

RE: Quoted and unquoted spilts

2003-02-06 Thread Bob Showalter
Bob Showalter wrote: > Jamie Risk wrote: > > How would I split, then push onto a list a variable length text > > string with quoted portions (example following) so that a split > > keeps text in quotes together. > > > > "keep me together" separate1 separate2 separate3 "keep me > > together too"

Re: Having problems with unpack and negative numbers.

2003-02-06 Thread Rob Dixon
David --- Senior Programmer Analyst --- Wgo Wagner wrote: > I have a number of files which I have transferred from another > system. I am trying to read the data, but running into a problem when > I hit what is a negative number (Each field is 4 characters in > length). > > Here is the unpack: > >

Re: Quoted and unquoted spilts

2003-02-06 Thread Rob Dixon
Bob Showalter wrote: > Just for kicks, here's a way to do it using split(). Text::CSV_XS is > still recommended, as it can deal with unbalanced quotes, escaped > embedded quotes, etc. > > $ perl -le 'print for map { /"(.*)"/ ? $1 : split " ", $_ } split > /(".*?")/, q["keep me together" separate1 s

Unix vs DOS EOL ...

2003-02-06 Thread Jamie Risk
Okay, I do know that binary transfer of a text file between DOS and Unix systems is a non-non, but my Samba setup isn't that discriminating. Perl is running on a Unix platform, and 'chomp' isn't quite up to the task of removing CR (ASCII '\r' or 0x0D). So I tried: s/(.+)[ \t\n\r]*/$1/ but those

Re: Unix vs DOS EOL ...

2003-02-06 Thread Jamie Risk
> So I tried: > s/(.+)[ \t\n\r]*/$1/ > but those tricky little CR are still there. Even > s/(.+)[ \t\n\r\015]*/$1/ > still eludes me. And then I tried: s/([^\n\r]+)[ \t\n\r]*$/$1/; which does work, but seems overly finicky to get rid of BG's legacy. Is there a better way? -- To unsubscr

RE: Unix vs DOS EOL ...

2003-02-06 Thread Kipp, James
> > > Okay, I do know that binary transfer of a text file between > DOS and Unix > systems is a non-non, but my Samba setup isn't that discriminating. > > Perl is running on a Unix platform, and 'chomp' isn't quite > up to the task > of removing CR (ASCII '\r' or 0x0D). > So I tried: > s/(.+)

Re: sasdata set

2003-02-06 Thread Jean Roth
I would suggest Stat/Transfer, www.stattransfer.com or DBMS/Copy. Best, Jean Roth National Bureau of Economic Research www.nber.org/data Date: Thu, 6 Feb 2003 11:30:19 -0500 (EST) From: Benjamin Jurado <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: sasdata set can anyone point in the direc

Re: How to send an e-mail from perl script on windows using SMTP?

2003-02-06 Thread Jenda Krynicky
From: "dan" <[EMAIL PROTECTED]> > With regards to NET::SMTP and Net::SMTP, since it's on windows, case > doesn't really seem to matter. > > Dan Wrong. There are some modules that do not care whether you use the right case, but most modules will not work correctly. The reason is that the use sta

RE: Unix vs DOS EOL ...

2003-02-06 Thread Bob Showalter
Jamie Risk wrote: > Okay, I do know that binary transfer of a text file between DOS and > Unix systems is a non-non, but my Samba setup isn't that > discriminating. > > Perl is running on a Unix platform, and 'chomp' isn't quite up to the > task of removing CR (ASCII '\r' or 0x0D). It is if you

modify the first few lines of a file

2003-02-06 Thread sashidhar
Hello, I am dealing with text files of sizes > 2 GB. I have to modify just the top 2 lines of such files. Is there a way in Perl to modify just the first 'n' lines of the file without having to process rest of the file as it involves a lot of IO and time. Thanks, Siva. __

multi do statements

2003-02-06 Thread Benjamin Jeeves
Hi All When I run this code it will execute the first do statement but does not execute the 2.3.4 do statment but it show me no errors I can see no errors can you help while ( ) { unless ($return = do $udpport137) {

Re: text manipulation scenario...

2003-02-06 Thread John W. Krahn
Patricia E Gorden-Ozgul wrote: > > I need to construct a working printf statement where each field in a given > record would print at a specified position. > > Each record may or may not contain any particular field but will always > begin with .VENDOR.LIBRARY. and end with .VENDOR.XINFO.END. >

Re: Quoted and unquoted spilts

2003-02-06 Thread Jeff 'japhy' Pinyan
On Feb 6, Jamie Risk said: >How would I split, then push onto a list a variable length text string >with quoted portions (example following) so that a split keeps text >in quotes together. > > "keep me together" separate1 separate2 separate3 "keep me together too" >separate4 > >If the above were

Re: modify the first few lines of a file

2003-02-06 Thread John W. Krahn
Sashidhar wrote: > > Hello, Hello, > I am dealing with text files of sizes > 2 GB. I have to modify just the top 2 lines > of such files. Is there a way in Perl to modify just the first 'n' lines of the file > without having to process rest of the file as it involves a lot of IO and time. It de

Re: modify the first few lines of a file

2003-02-06 Thread sashidhar
I may have to change the length of the files. Is there no way, like manipulating the inode entries to reflect any changes in the length. Ofcourse, I realize that this is specific to the linux/unix env. --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > Sashidhar wrote: > > > > Hello, > > Hello, >

Re: Using PGP in a perl script

2003-02-06 Thread Wiggins d'Anconia
A bit confused... Hodgkinson, Bill (MED) wrote: I am trying to use PGP to decrypt an encrypted file and store the standard output of the decryption into several hashes so that I can use the hashes in a password recall script. Are you saying you want to call pgp command line and store what it

Re: Using PGP in a perl script

2003-02-06 Thread Wiggins d'Anconia
p.s. Providing your version of PGP and what environment you are running this in may help as well. For instance GnuPG on Linux RH 8.0, NAI PGP on Win 2000 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Beginners question for PERL

2003-02-06 Thread Clark, Mark
I have been looking to see if a port of PERL (any PERL!) exists for the IPAQ. Could someone tell me yay/nay/where? What I have found so far is that PERL makes it's way into these devices via Linux. Is this the only way? Thanks in advance. -- Mark -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Premature end of script headers

2003-02-06 Thread toplijst.org
That's it ! thanks, Martin - Original Message - From: "Rob Dixon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 3:28 PM Subject: Re: Premature end of script headers > Zegdatwel wrote: > > hi, > > > > "Premature end of script headers" > > > > what can thi

Tk::Balloon Question

2003-02-06 Thread Jim
Hello, I've been having size problems with balloons. In the example below, the first balloon to appear is the size of my main window. After that balloon closes, future balloons are sized according to their contents. In another script I'm working on, the balloons always stay the size of the main

Winamp::Control

2003-02-06 Thread David O'Dell
Has anyone used this? It seems that rather than authenticating once and then keeping the same socket open for further commands it is looking to authenticate for every command, however other than the validate_password command I can't see where to put the password string in. I've tried $winamp = W

OT (Sort of): Amazon.com

2003-02-06 Thread Wiggins d'Anconia
I have noticed over the last year or so that Amazon.com likes to spam the jobs.perl.org list periodically, sometimes repetitively with the same job posting, and I am curious, has *anyone* in the Perl community actually been contacted by them? Anyone outside of the Seattle area? Right now I am

Re: modify the first few lines of a file

2003-02-06 Thread John W. Krahn
Sashidhar wrote: > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > Sashidhar wrote: > > > > > > I am dealing with text files of sizes > 2 GB. I have to modify just the top 2 > > > lines of such files. Is there a way in Perl to modify just the first 'n' lines > > > of the file without having t

Re: Beginners question for PERL

2003-02-06 Thread Wiggins d'Anconia
Clark, Mark wrote: I have been looking to see if a port of PERL (any PERL!) exists for the IPAQ. Could someone tell me yay/nay/where? What I have found so far is that PERL makes it's way into these devices via Linux. Is this the only way? Running WinCE?? http://www.rainer-keuchel.de/wince/

Re: OT (Sort of): Amazon.com

2003-02-06 Thread John W. Krahn
Wiggins D'Anconia wrote: > > I have noticed over the last year or so that Amazon.com likes to spam > the jobs.perl.org list periodically, sometimes repetitively with the > same job posting, and I am curious, has *anyone* in the Perl community > actually been contacted by them? Perhaps you should

Re: OT (Sort of): Amazon.com

2003-02-06 Thread Wiggins d'Anconia
John W. Krahn wrote: Wiggins D'Anconia wrote: I have noticed over the last year or so that Amazon.com likes to spam the jobs.perl.org list periodically, sometimes repetitively with the same job posting, and I am curious, has *anyone* in the Perl community actually been contacted by them? Perh

regular expressions / clickable links in text

2003-02-06 Thread Hohokus Wombat
hi - quick question: i want to take a chunk of text and convert anything that's a link to something clickable in the browser. (this is being used in 'request tracker', if anyone's interested.) there's already a chunk of code that does this: sub print_html{ my ($value) = shift; my %map =

Re: a though question of using variable in pattern

2003-02-06 Thread R. Joseph Newton
Rob Dixon wrote: > Hi again Kasi. Still not using /x ? ;-) > > Look: > > print my $t="href=\"(.*?)\">"; > outputs > href="(.*?)"> H. this gets me thinking. How does that translate into a regex when such a variable is passed in? Would Perl do the escaping and feed the regex someth

Re: help please!

2003-02-06 Thread R. Joseph Newton
Benjamin Jeeves wrote: > Hi All > > I have a require statement that is run by my main program but I get a error > "did not return a true value at ./connecttime.pl line 26, line > 11811302." connecttime.pl is the main program and the script it is executing > this to do pattern matching on the file

Re: regular expressions / clickable links in text

2003-02-06 Thread Randal L. Schwartz
> "Hohokus" == Hohokus Wombat <[EMAIL PROTECTED]> writes: Hohokus> i want to take a chunk of text and convert anything that's a link to Hohokus> something clickable in the browser. (this is being used in 'request Hohokus> tracker', if anyone's interested.) Hohokus> there's already a chunk of