Problem with Archive::Tar module

2004-08-19 Thread Ronald Nutter
I am trying to install this module for use with a spamassassin server. Using Perl 5.8.3 on Fedora Core 2. Getting the following error when I either try to install the module through CPAN or downloading the tar and doing it the old fashioned way. Would appreciate any suggestions for finding the pr

Problem installing Archive::Tar

2004-08-19 Thread Ronald Nutter
I am trying to install this module for use with a spamassassin server. Using Perl 5.8.3 on Fedora Core 2. Getting the following error when I either try to install the module through CPAN or downloading the tar and doing it the old fashioned way. Would appreciate any suggestions for finding the pr

Re: Problem installing Archive::Tar

2004-08-19 Thread Randy W. Sims
Ronald Nutter wrote: I am trying to install this module for use with a spamassassin server. Using Perl 5.8.3 on Fedora Core 2. Getting the following error when I either try to install the module through CPAN or downloading the tar and doing it the old fashioned way. Would appreciate any suggestio

docu of the Perl-makefile

2004-08-19 Thread Christian Stalp
Hi out there, where I can find some informations to modfiy the behavior of perl-Makefiles. Like: perl Makefile:PL cc=/usr/bin/gcc or to change the include-path aso. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: problems while building Tk on HPUX

2004-08-19 Thread Christian Stalp
> Do you have X windows installed? It appears it can't find the X > headers. Also not sure why it is looking in /include for them, not even > sure it is looking in there? Do you have any -I switches configured, or > an INCLUDE_PATH?? > > http://danconia.org We have installed X but as it seems, w

Help with processing values

2004-08-19 Thread john
Sorry if this a duplicate, my mail server appears to be on vacation: Good morning all, I have written a script that will promote a file from one server to another server. I am having some troubles trying to get the script to read my values from my form element. Basically a user will pick either

RE: Reading hex data from file.

2004-08-19 Thread West, William M
>Hi, >Among other data, a binary file contains the bytes "00A5". >I am trying to read these four bytes and get the decimal equivalent as - $POST_DATA =~ s/(\w\w)/chr (hex($1))/eg; this is a line from one of my programs where i send data from another program in the form of argueme

Help with processing values

2004-08-19 Thread John Pretti
Good morning all, I have written a script that will promote a file from one server to another server. I am having some troubles trying to get the script to read my values from my form element. Basically a user will pick either a production server or a certification server and then do a SCP base

RE: Reading hex data from file.

2004-08-19 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi, > Among other data, a binary file contains the bytes "00A5". > I am trying to read these four bytes and get the decimal equivalent as > follows: [snip] > read(FD, $buf, 4); $buf -> "00A5" I'm not sure I follow. Are you saying the characters in buf are

direct string manipulation (like in c)

2004-08-19 Thread Christopher J. Bottaro
say i have two strings "" and "". i want to replace characters 4-7 in the first string with the second string with an emphasis on speed. basically i want to do what can be done in c with the following: char str1[13] = ""; char *str2 = ""; strncpy(str1+4, str2, 4);

Re: direct string manipulation (like in c)

2004-08-19 Thread James Edward Gray II
On Aug 19, 2004, at 10:55 AM, Christopher J. Bottaro wrote: say i have two strings "" and "". i want to replace characters 4-7 in the first string with the second string with an emphasis on speed. perldoc -f substring Come back if you need a bigger hint. ;) James -- To unsubscrib

Re: direct string manipulation (like in c)

2004-08-19 Thread James Edward Gray II
On Aug 19, 2004, at 10:55 AM, James Edward Gray II wrote: On Aug 19, 2004, at 10:55 AM, Christopher J. Bottaro wrote: say i have two strings "" and "". i want to replace characters 4-7 in the first string with the second string with an emphasis on speed. perldoc -f substring Egad,

Re: direct string manipulation (like in c)

2004-08-19 Thread Gunnar Hjalmarsson
Christopher J. Bottaro wrote: say i have two strings "" and "". i want to replace characters 4-7 in the first string with the second string with an emphasis on speed. basically i want to do what can be done in c with the following: char str1[13] = ""; char *str2 = "

Re: direct string manipulation (like in c)

2004-08-19 Thread Christopher J. Bottaro
Gunnar Hjalmarsson wrote: > You can use substr() as an rvalue: > > substr($str1, 4, 8 - length $str1, $str2); > > or if the length of $str1 is given: > > substr($str1, 4, -4, $str2);# probably fastest i don't understand why the 3rd argument is negative. given $str1 = 'xxx

Re: direct string manipulation (like in c)

2004-08-19 Thread James Edward Gray II
On Aug 19, 2004, at 11:55 AM, Christopher J. Bottaro wrote: Gunnar Hjalmarsson wrote: You can use substr() as an rvalue: substr($str1, 4, 8 - length $str1, $str2); or if the length of $str1 is given: substr($str1, 4, -4, $str2);# probably fastest i don't understand why the 3rd

Re: Can't kill forked grandchildren when running from shell script

2004-08-19 Thread Adam Rosi-Kessel
On Tue, Aug 17, 2004 at 08:22:09PM -0400, Jim wrote: >> [problem killing grandchildren when perl script runs from shell >> script] > your right the code is standard, I usually don't run perl scripts from shell > scripts except for cron jobs. I will take a look at some of my similar > scripts and s

Re: direct string manipulation (like in c)

2004-08-19 Thread Christopher J. Bottaro
James Edward Gray II wrote: > Then you didn't read the documentation I sent you the link for. ;) > > A negative index counts backwards from the end of the string. i did read it. maybe i should have asked my question like this: "why is the 3rd argument negative when you can simply say: substr($

POD on new module to make sure it looks right before uploading to CPAN

2004-08-19 Thread JupiterHost.Net
Howdy group, I'm getting ready to add a module or two to CPAN. I'm working on the POD documentation now. I'd like to make sure it looks right and the links work and all before I upload it to CPAN. Is there an easy way to view the POD from a local module in a browser to see what it will look like

Re: POD on new module to make sure it looks right before uploading to CPAN

2004-08-19 Thread JupiterHost.Net
To further where I'm at: pod2html('pod2html', '--backlink="Back to Top"', '--css=http://search.cpan.org/s/style.css', '--infile=/modules/$pmfile' ); So the questions are now: What does the first argument "pod2html" do? (It was in the example) It gives: Can't open pod2html: No such file or d

cgi modules

2004-08-19 Thread DBSMITH
All, I want to use a web interface for certain functions such as displaying process results and data from programs. What module should I use? I noticed CGI::Safe, CGI::Base, and CGI that stood out to me??? thanks, Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams

Re: cgi modules

2004-08-19 Thread Chris Devers
On Thu, 19 Aug 2004 [EMAIL PROTECTED] wrote: I want to use a web interface for certain functions such as displaying process results and data from programs. What module should I use? I noticed CGI::Safe, CGI::Base, and CGI that stood out to me??? CGI.pm is the canonical one to use -- not counting

Re: cgi modules

2004-08-19 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: I want to use a web interface for certain functions such as displaying process results and data from programs. Okay, so you're about to enter the world of CGI. :) What module should I use? That's one question, and I have nothing in reply to it besides what Chris said. Bu

Re: File Modification

2004-08-19 Thread Randy W. Sims
On 8/19/2004 7:40 PM, Subrata k Bose wrote: It is extremely inapropriate to CC questions to so many people who are already members of the mailing list. If you have a question, simply post it to the list. Regards, Randy. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma