RE: CGI Module Reference

2003-07-08 Thread Charles K. Clarkson
Shaw, Matthew [mailto:[EMAIL PROTECTED] : : Could someone direct me to a reference that contains all of the : available methods in the CGI module? http://stein.cshl.org/WWW/software/CGI/cgi_docs.html There is also one on the computer where you installed perl, at perldoc.com, on CPAN,

RE: CGI Module Reference

2003-07-08 Thread Scot Robnett
Online docs --- perldoc CGI O'Reilly books -- CGI Programming with Perl CGI Cookbook - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Shaw, Matthew [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 1:44 PM To: [EMAIL

Re: sending mail to a group using perl

2003-07-08 Thread Jon Hogue
Is this a global group or one you've set up for your personal use? At 05:37 AM 7/8/2003 +, Sally Librilla wrote: Hi, I'm send email using the Mail::SendMail module. I understand how the send To field works for multiple works however, I can't get it to work to send mail to a group existing

Re: Working with DBI

2003-07-08 Thread Greenhalgh David
On Tuesday, July 8, 2003, at 01:19 pm, Bob Showalter wrote: Greenhalgh David wrote: ... In other words, my SELECT block is returning the value of available as it was before the UPDATE, even though I have AutoCommit set to 1, the UPDATE is called before the SELECT and manual investigation of the

RE: Working with DBI

2003-07-08 Thread Bob Showalter
Greenhalgh David wrote: On Tuesday, July 8, 2003, at 01:19 pm, Bob Showalter wrote: Greenhalgh David wrote: ... In other words, my SELECT block is returning the value of available as it was before the UPDATE, even though I have AutoCommit set to 1, the UPDATE is called before the

RE: Working with DBI

2003-07-08 Thread Bob Showalter
Bob Showalter wrote: ... Make sure you have RaiseError turned on. and PrintError -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

tell-a-friend web functionality?

2003-07-08 Thread Paul Torrance
Hi There, Afraid that I'm an absolute beginner when it comes to cgi/perl. What I would like to achieve, however, is to add 'tell-a-friend' functionality to a web site which I have created. Does anyone have any thoughts/advice? Thanks in advance, paul -- To unsubscribe, e-mail: [EMAIL

Re: Working with DBI

2003-07-08 Thread Greenhalgh David
#!/usr/local/bin/perl -wT use strict; use CGI ':standard'; use DBI; use CGI::Carp qw(fatalsToBrowser); # Simulate a param call in CGI my $player=HarryPotter; # Connect to the database my $dbh = DBI-connect(DBI:mysql:ladderDB, , xx); # Make an update that is representative of the full

Re: tell-a-friend web functionality?

2003-07-08 Thread Wiggins d'Anconia
Paul Torrance wrote: Hi There, Afraid that I'm an absolute beginner when it comes to cgi/perl. What I would like to achieve, however, is to add 'tell-a-friend' functionality to a web site which I have created. Does anyone have any thoughts/advice? Be sure to start a new thread when posting a new

split function problem.

2003-07-08 Thread Sara
An input string like; $name_with_id = Deiley, Sara Jr., 1234; another example could be $name_with_id = DEILEY SARA, Jr,. 123; Two things are for sure in it always. 1- First part contains the alphabets (caps or small) with any number of commas and periods (full stops) in between or at the

Re: readdir unlink any symlinks

2003-07-08 Thread Harry Putnam
Steve Grazzini [EMAIL PROTECTED] writes: Ah, okay. But you'll need to make that into a real loop. use File::Spec::Functions; ... foreach (readdir(DIR)) { my $target = catfile($mnsd, $_); if (-l $target) { unlink $target or warn unlink:

Changing File Content

2003-07-08 Thread Rasoul Hajikhani
Hello all, I am trying to change a string in a bunch of files to something else. Here is my command: perl -pi.bak -e 's|page=main|page=scanP|g' *.(html|pm|pl|cf) However, in running this command, I am also changing file ownership to the person running the script. Is there any way of avoiding

CRLF

2003-07-08 Thread Andre Chaves Mascarenhas
Hi I'm having a hard time commecting to an smtp server when i sed the Subject: any\n\n; it replyes with an web page address saiing that i'm triing to send a bare LF well so can anybody tell me what is the code for CRLF is it chr(10)chr(13) ? or \c\l? Thanks

Re: CRLF

2003-07-08 Thread Bryan Harris
I'm having a hard time commecting to an smtp server when i sed the Subject: any\n\n; it replyes with an web page address saiing that i'm triing to send a bare LF well so can anybody tell me what is the code for CRLF is it chr(10)chr(13) ? or \c\l? I'm not sure you want CRLF, that's the DOS

Re: CRLF

2003-07-08 Thread John W. Krahn
Andre Chaves Mascarenhas wrote: Hi Hello, I'm having a hard time commecting to an smtp server when i sed the Subject: any\n\n; it replyes with an web page address saiing that i'm triing to send a bare LF well so can anybody tell me what is the code for CRLF is it chr(10)chr(13) ? or

RE: print!?!

2003-07-08 Thread Charles Scheepers
The program prints to a number of different places. Files -- data output and some logs. Then I also need to print some error info to the terminal (STDOUT). It is this last part that is not happening on UNIX, but it does on DOS. Regards, Charles Scheepers -Original Message- From: Dan

Re: SOCKETS??

2003-07-08 Thread david
Andre Chaves Mascarenhas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi How do i read a web page with socks? do i send? if SK is a open socjet at port 80 at lets say www.yahoo.com if i send print SK GET /index.htm HTTP/1.1\n will i get the www.yahoo.com/index.htm page ? Thanks

Re: ASCII Manipulation in perl

2003-07-08 Thread John W. Krahn
Madhu Reddy wrote: Hi, Hello, I want to write following C Equivalant with PERL My perl equvalant is at the end of this mail.. please correct me... my questios are inside perl comments... -- C Code start - for(i=0;i(int)strlen(Buffer);i++) { if((Buffer[i] 32) ||

Re: Net::NNTP List does not work

2003-07-08 Thread Janek Schleicher
Gene Mat wrote at Mon, 07 Jul 2003 23:18:38 +: I am trying to call the list function using NET::NNTP. use Net::NNTP; use strict; use warnings; would have told you where and why the error is. $nntp = Net::NNTP-new(nntp.perl.org,Debug,10);

sftp installation

2003-07-08 Thread vemulakonda uday bhaskar
hi all i have written a code for sftp in linux thru perl. the code is absolutely correct but when i run the script , it says permission denied . i think it is because of no sftp software in the system. can any on etell me from where i can get sftp server software so that i can install it , any

installation sftp : perl

2003-07-08 Thread vemulakonda uday bhaskar
hi all i have a code in perl which uses sftp between linux systems. the code is: #!/usr/local/bin use strict; use warnings; use Net::SFTP; my $host=xxx.xxx.xxx.xxx; $u=username; $p=password; my $sftp=Net::SFTP-new($host,Proto=tcp,user=$u,password=$p) or die cannot

installation sftp : perl:complete

2003-07-08 Thread vemulakonda uday bhaskar
hi all the previous mail is not complete . i have a code in perl which uses sftp between linux systems. the code is: #!/usr/local/bin use strict; use warnings; use Net::SFTP; my $host=xxx.xxx.xxx.xxx; $u=username; $p=password; my $sftp=Net::SFTP-new($host,Proto=tcp,user=$u,password=$p)

installation sftp : perl:complete

2003-07-08 Thread vemulakonda uday bhaskar
hi all the previous mail is not complete . i have a code in perl which uses sftp between linux systems. the code is: #!/usr/local/bin use strict; use warnings; use Net::SFTP; my $host=xxx.xxx.xxx.xxx; $u=username; $p=password; my $sftp=Net::SFTP-new($host,Proto=tcp,user=$u,password=$p)

Re: Rename - readdir - Permission Denied

2003-07-08 Thread Rob Dixon
Paul Kraus wrote: I am doing a readdir. Taking the filenames that are found and trying to rename them. Opendir @files = Readdir Foreach @files parse filename $newfile = newfile name based on parsed name push (@rename,[$_,$newfile]) Foreach @rename rename $$_[0], $$_[1] or die (NO

Re: CRLF

2003-07-08 Thread Rob Dixon
Andre Chaves Mascarenhas wrote: Hi I'm having a hard time commecting to an smtp server when i sed the Subject: any\n\n; it replyes with an web page address saiing that i'm triing to send a bare LF well so can anybody tell me what is the code for CRLF is it chr(10)chr(13) ? or \c\l? If you

Re: Reference Hash to an array

2003-07-08 Thread Rob Dixon
Gene Mat wrote: Hi I trying out a new module. Everything is working execpt I can seem to list out a reference hash to an array. How can I print out the contents of the array? I am able to get the all the keys of refrence hash by just using a foreach tag (keys %$REFHASH) {print $tag

Re: underlining full text

2003-07-08 Thread Rob Dixon
Guruguhan N wrote: Hi All, I would like to know how to underline entire text using -underline option ? The -underline option of what? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: installation sftp : perl:complete

2003-07-08 Thread zentara
On 8 Jul 2003 11:06:51 -, [EMAIL PROTECTED] (Vemulakonda Uday Bhaskar) wrote: i have a code in perl which uses sftp between linux systems. and i have installed sftp-0.9.9 but it is givibg error saying that Requestion for subsystem 'sftp' failed on channel'1' at

List problems

2003-07-08 Thread Paul Kraus
I periodically don't get any messages from the list. For instance yesterday I quit receiving at around 10 am and when I left work at 5 I still had not gotten any. Then when I came in there was a bunch. Anything that might cause this? Once last week I got a message from the list saying that all

Looping with multiples?

2003-07-08 Thread Paul Kraus
I have a variable amount of text files that need to get parsed. The files come in groups of 6. I only need to parse files 4 5 and 6. So if I had 3 groups waiting to be processed then I would have to read through and parse 4,5,6,10,11,12,16,17,18. The file names look like this...

RE: Data Structures in Perl

2003-07-08 Thread Trevor Morrison
HI, I must be missing something, after following Gupta's advice the particular object printed fine using this code: $obj-order_number ($order_num); print obj: . $obj-order_number($order_num) . \n; push @order, $obj; for each of the 15 orders which I have shown below. Now, at the end of my

RE: print!?!

2003-07-08 Thread Dan Muey
The program prints to a number of different places. Files -- data output and some logs. Then I also need to print some error info to the terminal (STDOUT). It is this last part that is not happening on UNIX, but it does on DOS. What is output when you run it from the command line the same

how to create/use data structures in perl ?

2003-07-08 Thread Madhu Reddy
Hi, How to create data structures in perl ? I have following data structure in C...and i have to create similar data structure in perl and use... how to create data strutures in perl and how to use ? typedef struct { charPrefix[8]; charPrint;

RE: Looping with multiples?

2003-07-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Paul Kraus wrote: I have a variable amount of text files that need to get parsed. The files come in groups of 6. I only need to parse files 4 5 and 6. So if I had 3 groups waiting to be processed then I would have to read through and parse 4,5,6,10,11,12,16,17,18. The file names look like

RE: installation sftp : perl:complete

2003-07-08 Thread wiggins
On 8 Jul 2003 11:06:51 -, vemulakonda uday bhaskar [EMAIL PROTECTED] wrote: hi all the previous mail is not complete . i have a code in perl which uses sftp between linux systems. the code is: Please copy and paste in the future,

RE: Looping with multiples?

2003-07-08 Thread Paul Kraus
No your not missing anything I am :) I have never seen this before. Looking at the perl book it says that it will subtract a$ from the highest multiple of b$ that is not greater then a$. So writing a quick loop that does 6 % $i where $i is 1..24 I get these results. Which makes sense. But then

RE: print!?!

2003-07-08 Thread Bill Akins
You may want to take a look at IO::Tee and IO::File module from CPAN. See http://search.cpan.org/author/KENSHAN/IO-Tee-0.64/Tee.pm Charles Scheepers 07/08/03 03:56AM The program prints to a number of different places. Files -- data output and some logs. Then I also need to print some

RE: Looping with multiples?

2003-07-08 Thread Bob Showalter
Paul Kraus wrote: No your not missing anything I am :) I have never seen this before. Looking at the perl book it says that it will subtract a$ from the highest multiple of b$ that is not greater then a$. So writing a quick loop that does 6 % $i where $i is 1..24 I get these results.

RE: Looping with multiples?

2003-07-08 Thread Jenda Krynicky
From: Paul Kraus [EMAIL PROTECTED] No your not missing anything I am :) I have never seen this before. Looking at the perl book it says that it will subtract a$ from the highest multiple of b$ that is not greater then a$. So writing a quick loop that does 6 % $i where $i is 1..24 I get

RE: Looping with multiples?

2003-07-08 Thread Paul Kraus
Thanks that cleared it up. Talk about a useful operator. Wish I had know about this 6 months ago. I guess its time to actually read the perl book rather then using it as a reference manual :) Thanks everyone. -Original Message- From: Jenda Krynicky [mailto:[EMAIL PROTECTED] Sent:

Re: List problems

2003-07-08 Thread Rob Dixon
Hi Paul. Paul Kraus wrote: I periodically don't get any messages from the list. For instance yesterday I quit receiving at around 10 am and when I left work at 5 I still had not gotten any. Then when I came in there was a bunch. Anything that might cause this? Are you connected via POP/SMTP

Re: Looping with multiples?

2003-07-08 Thread Rob Dixon
Hi Paul. May I pull your code apart? Paul Kraus wrote: I have a variable amount of text files that need to get parsed. The files come in groups of 6. I only need to parse files 4 5 and 6. So if I had 3 groups waiting to be processed then I would have to read through and parse

RE: List problems

2003-07-08 Thread Paul Kraus
I am getting them through pop/SMTP -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:00 PM To: [EMAIL PROTECTED] Subject: Re: List problems Hi Paul. Paul Kraus wrote: I periodically don't get any messages from the list. For instance

RE: Looping with multiples?

2003-07-08 Thread Paul Kraus
No you may not pull my code apart ;) Thanks for all good advice. However why is the in front of the sub routine call a bad idea. From what I understood from the learning perl (it has been awhile since I looked at this book) you should always put the in front of the call unless your subroutines

RE: Looping with multiples?

2003-07-08 Thread Paul Kraus
Your code works great is of course a lot easier to read. However the sort does to work as expected. I was appending the _(x)_ to the beginning of the string so that I could then sort numerically. Looking at like this the sort isn't even necessary however as an exercise how would one go about

problems replacing a pattern in file

2003-07-08 Thread Johnson, Shaunn
Howdy: I have a script where I'd like to open a bunch of files, search for a pattern and replace it with another. What I am getting is not quite what I expected. I get almost everything, but I'm getting a bit more at the end. [snip script] #!/usr/bin/perl -w use strict; use warnings; use

Re: Looping with multiples?

2003-07-08 Thread Steve Grazzini
On Tue, Jul 08, 2003 at 01:04:40PM -0400, Paul Kraus wrote: Thanks for all good advice. However why is the in front of the sub routine call a bad idea. Check: % perldoc perlsub In Perl5, the ampersand changes how the subroutine call is parsed and executed. If you use it with

Better way to upload??

2003-07-08 Thread Ramon Chavez
Hi all. I need some advice on this. I'm writing a script for uploading a file ($file). Saving it as $file_path/$name The way I'm doing this right now is (after checking the file extensión and assuring every character is only a letter or an underscore): -My

Re: problems replacing a pattern in file

2003-07-08 Thread John W. Krahn
Shaunn Johnson wrote: Howdy: Hello, I have a script where I'd like to open a bunch of files, search for a pattern and replace it with another. What I am getting is not quite what I expected. I get almost everything, but I'm getting a bit more at the end. It looks like you are

Re: Looping with multiples?

2003-07-08 Thread Rob Dixon
Steve Grazzini wrote: On Tue, Jul 08, 2003 at 01:04:40PM -0400, Paul Kraus wrote: Thanks for all good advice. However why is the in front of the sub routine call a bad idea. Check: % perldoc perlsub In Perl5, the ampersand changes how the subroutine call is parsed and executed.

RE: problems replacing a pattern in file

2003-07-08 Thread Johnson, Shaunn
Thanks for the reply: Are you sure that the problem isn't in the 'for' loop? It seems odd that I have eight files in the directory and eight counts of the (100) at the end of the lines. I am going to try something with the for loop and see if that gets me anywhere. Thanks again for that shorter

Why doesn't this match

2003-07-08 Thread Paul Kraus
Expression /Sales - Freight - Leimkuehler\s+(\d+,?\d+\.?\d+)/ String 410-02-00Sales - Freight - Leimkuehler 6.96 It does match if I remove everything after Leimkuehler. This is how it reads to me 1 or more spaces Open paren to save value to $1 1 or more digits Maybe a comma but not

Re: Looping with multiples?

2003-07-08 Thread Steve Grazzini
On Tue, Jul 08, 2003 at 07:09:36PM +0100, Rob Dixon wrote: Steve Grazzini wrote: Both of these forms have their (occasional) places, but you should be aware of what they really do. Yeah. Like what he said. *bows* -- Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Why doesn't this match

2003-07-08 Thread Hanson, Rob
I am assuming my the problem is with ,? But I don't understand why. (\d+,?\d+\.?\d+) This matches 1+ digits, and optional comma, 1+ digits, optional period, and 1+ digits. So if the comma is not present (which it isn't in your example) it MUST match AT LEAST TWO digits (one before AND one

RE: Why doesn't this match

2003-07-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Paul Kraus wrote: Expression /Sales - Freight - Leimkuehler\s+(\d+,?\d+\.?\d+)/ String 410-02-00Sales - Freight - Leimkuehler 6.96 It does match if I remove everything after Leimkuehler. This is how it reads to me 1 or more spaces Open paren to save value to $1 1 or more

Re: Why doesn't this match

2003-07-08 Thread Paul Johnson
On Tue, Jul 08, 2003 at 02:48:59PM -0400, Paul Kraus wrote: Expression /Sales - Freight - Leimkuehler\s+(\d+,?\d+\.?\d+)/ String 410-02-00Sales - Freight - Leimkuehler 6.96 It does match if I remove everything after Leimkuehler. This is how it reads to me 1 or more spaces

Re: Command line interface for http://www.m-w.com.

2003-07-08 Thread zentara
On Mon, 7 Jul 2003 21:19:19 -0400, [EMAIL PROTECTED] (Zeus Odin) wrote: I have written an interface for m-w.com. I found some scripts on the web but nothing really robust. Please have a look, make comments, request functionality, make suggestions, make changes, or anything else you feel useful.

RE: Better way to upload??

2003-07-08 Thread Dan Muey
Hi all. Howdy I need some advice on this. I'm writing a script for uploading a file ($file). Saving it as $file_path/$name The way I'm doing this right now is (after checking the file extensión and assuring every character is only a letter or an underscore): -My

Re: List problems

2003-07-08 Thread Rob Dixon
Paul Kraus wrote: I am getting them through pop/SMTP -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:00 PM To: [EMAIL PROTECTED] Subject: Re: List problems Hi Paul. Paul Kraus wrote: I periodically don't get any messages from the

Strftime %e not useable in perl?

2003-07-08 Thread Jensen Kenneth B SrA AFPC/DPDMPQ
Wondering why this doesn't work: Use POSIX qw(strftime); my ($month, $day) = split / /,(strftime '%b %e',localtime()); %e should be the day of the month in the format 1-31. But this does work: Use POSIX qw(strftime); my ($month, $day) = split / /,(strftime '%b %d',localtime()); %d is the day of

Fw: Better way to upload??

2003-07-08 Thread Ramon Chavez
You are right Dan ;-) The 'Other way' desn't really handle te size. I'm sorry for that. What I was really thinking is that you can have a control of what amount of data is being uploaded just counting the loops (1 Kb for every loop). -rm- - Original Message - From: Dan Muey

RE: Strftime %e not useable in perl?

2003-07-08 Thread Bob Showalter
Jensen Kenneth B SrA AFPC/DPDMPQ wrote: Wondering why this doesn't work: Use POSIX qw(strftime); my ($month, $day) = split / /,(strftime '%b %e',localtime()); %e should be the day of the month in the format 1-31. But this does work: Use POSIX qw(strftime); my ($month, $day) = split /

RE: Better way to upload??

2003-07-08 Thread Dan Muey
You are right Dan ;-) The 'Other way' desn't really handle te size. I'm sorry for that. What I was really thinking is that you can have a control of what amount of data is being uploaded just counting the loops (1 Kb for every loop). Oh yeah good idea, what I'd do is thew while loop

map() returns scalar value instead of match string?

2003-07-08 Thread Lance Murray
Hello: I'm very excited when I discovered the map function, however, I cannot seem to get it to do what I want in this instance: chomp (my @strings = `strings *`); my $var; my @ptrRecords = map ((/.*\s+PTR\s+.*/), @strings ); # - LINE IN QUESTION foreach (@ptrRecords) { print $_\n

RE: map() returns scalar value instead of match string?

2003-07-08 Thread Gupta, Sharad
I think u would need the grep function here instead of map. Map returns the results of the evaluation of expression which is '1' in ur case because u matched. Grep returns the actual elements of the list for which the expression was true. try: my @ptrRecords = grep{/.*\s+PTR\s+.*/[EMAIL

create files in multi directories

2003-07-08 Thread Ronen Kfir
Hi, I have sent this message a couple of days ago, but got no response, so I would assume you havnt got the time to do so, maybe now you would. How would I create a bunch of files with the same name, save them under the same root directory, but only in part of the subdirectories change one

Re: problems replacing a pattern in file

2003-07-08 Thread John W. Krahn
Shaunn Johnson wrote: From: John W. Krahn [mailto:[EMAIL PROTECTED] Shaunn Johnson wrote: # create a loop to search for one instance of # my password and change it to something else # one day, i'll get smart and ask for a paramater, too for my $file(@list) { open (FILE, $file)

RE: $! and $@

2003-07-08 Thread Gupta, Sharad
$! is the oserror. $@ contains the exceptions thrown by eval. Eg: use strict; my $out = get_list(); if($@) { print Could not get the list: $@; } sub get_list { # If we die return the error set in [EMAIL PROTECTED] eval { # If we are unable

Re: Strftime %e not useable in perl?

2003-07-08 Thread John W. Krahn
Jensen Kenneth B Sra Afpc/Dpdmpq wrote: Wondering why this doesn't work: Use POSIX qw(strftime); my ($month, $day) = split / /,(strftime '%b %e',localtime()); %e should be the day of the month in the format 1-31. But this does work: Use POSIX qw(strftime); my ($month, $day) = split /

RE: problems replacing a pattern in file

2003-07-08 Thread Johnson, Shaunn
Thanks for the reply. I will try that (modifying the for loop). I also tried to figure out if it was just the loop, or the replacement text that was giving me problems. For example, I changed my $new_ptrn to equal 'foo' and things worked okay. When I changed the $new_ptrn to equal 'character

Basic problem w/a script on browser

2003-07-08 Thread Chris San
How can I run a Perl Script on my browser? Reading I found that I have to do only 2 things: 1) Add a first line to my script (whereis perl): #! /usr/bin/perl 2) and formatting the output in html-style: print Content-type: text/html; print html; ... etc. But I dont get the results in the browser. I

RE: Basic problem w/a script on browser

2003-07-08 Thread Hanson, Rob
1) Add a first line to my script (whereis perl): #! /usr/bin/perl Correct. 2) and formatting the output in html-style: print Content-type: text/html; print html; Almost. You need 2 newlines after the content-type declaration. print Content-type: text/html\n\n; And... 3) The script must

CR at end of line - how do I parse this?

2003-07-08 Thread Fuchs, Christopher
Hello All: I have a perl script on UNIX which works properly for an ASCII input data file which is in the form of: record 1 line 1 record 1 line 2 record 1 line 3^M record 2 line 1 etc The record delimiter is ^M (which is sometimes refered to as CR or \r). When run on a Windows box, the ^M is

Re: CR at end of line - how do I parse this?

2003-07-08 Thread Rob Dixon
Christopher Fuchs wrote: Hello All: I have a perl script on UNIX which works properly for an ASCII input data file which is in the form of: record 1 line 1 record 1 line 2 record 1 line 3^M record 2 line 1 etc The record delimiter is ^M (which is sometimes refered to as CR or \r).

Re: CR at end of line - how do I parse this?

2003-07-08 Thread Janek Schleicher
Christopher Fuchs wrote at Tue, 08 Jul 2003 14:29:50 -0700: I have a perl script on UNIX which works properly for an ASCII input data file which is in the form of: record 1 line 1 record 1 line 2 record 1 line 3^M record 2 line 1 etc The record delimiter is ^M (which is sometimes

Re: $! and $@

2003-07-08 Thread Janek Schleicher
Jdavis wrote at Tue, 08 Jul 2003 14:39:17 -0600: I think these catch errors somehow... $! and $@ could someone explain this. Perl can explain it to you, just read: perldoc perlvar Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Rename - readdir - Permission Denied

2003-07-08 Thread David Storrs
On Mon, Jul 07, 2003 at 11:45:34AM -0400, Paul Kraus wrote: I am doing a readdir. Taking the filenames that are found and trying to rename them. Opendir @files = Readdir Foreach @files parse filename $newfile = newfile name based on parsed name push

Using Perl and C++ with SWIG

2003-07-08 Thread Kaushal Sanghavi
I'm just looking to use SWIG to form a perl module that can call c++ code. I'm running on redhat 7.2, so I'm hoping that there are some examples, etc. out there where some people can piont me to compile a very simple c++ program's interface file (and the c++ file itself with the required options

Using Perl and C++ with SWIG

2003-07-08 Thread Kaushal Sanghavi
I'm just looking to use SWIG to form a perl module that can call c++ code. I'm running on redhat 7.2, so I'm hoping that there are some examples, etc. out there where some people can piont me to compile a very simple c++ program's interface file (and the c++ file itself with the required options

Low Level Socket Programming

2003-07-08 Thread jdavis
hello, I have written a tcp socket server using the Perl Cookbook and Use Socket. This is nice an works well. However, i want to write a server that can listen for a special packet. So i need to get down futher that the Perl Cookbook shows. I want to see each packet and be able to look at its

Re: how to create/use data structures in perl ?

2003-07-08 Thread Sudarshan Raghavan
Madhu Reddy wrote: Hi, How to create data structures in perl ? I have following data structure in C...and i have to create similar data structure in perl and use... how to create data strutures in perl and how to use ? perldoc -f pack perldoc -f unpack typedef struct { char