Re: Tk/Perl and the Browser

2003-06-05 Thread zentara
On Thu, 5 Jun 2003 12:39:02 +0200 , [EMAIL PROTECTED] (Khalid Naji) wrote: Hi, Is there any way to display a Tk/Perl application unter the browser? Thank you KN Yes it's called the perlplus plugin http://www.Lehigh.EDU/~sol0/ptk/ppl/ppl.html It can be tricky to setup properly, but here is a

Memory shortage

2003-06-05 Thread Camilo Gonzalez
Okay, I'm still struggling here. My problem is I have a client who has a rather large tab delimited text file I am attempting to slurp up and place in a MySQL table. The file is almost 6 megs large but my ISP only allows 2 megs of RAM per user. I can slurp up only about 1.5 megs before I get

help with print MAIL

2003-06-05 Thread Catriona Wordsworth
Hi guys, Needing a little assistance with some issues I am having trying to get my script to print variable details into and email generated by the script. so far the script generates the email with (sendmail-t) etc then goes on print MAIL print this what I now want it to do is this... if

RE: Getting my head round hashes

2003-06-05 Thread Mark Young
One nice way to learn about hashes, arrays, scalars and references, is to learn the perl debugger and just experiment. There is a perl debugger tutorial in the perl documentation. You can print out the arrays and hashes w/o putting print statements into your code, and that makes the

Re: Memory shortage

2003-06-05 Thread Todd Wade
Camilo Gonzalez [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Okay, I'm still struggling here. My problem is I have a client who has a rather large tab delimited text file I am attempting to slurp up and place in a MySQL table. The file is almost 6 megs large but my ISP only

Streaming HTML

2003-06-05 Thread Aldekein
Hello, I am writing a Perl program. The goal of it is to process streaming HTML site (To describe - the document that you load never end - the new information is added to the end and sent to the client connected, the connection is not closed after this so it will be used more and more). Depends

How to automate the sending of mail

2003-06-05 Thread Richard Heintze
I need my web site to automatically send an email confirmation. I'm using CGI Perl 5.6 on IIS on Win2000. What options are there for doing this? __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- To

How to access server com object in CGI Perl

2003-06-05 Thread Richard Heintze
I have an nice little example that demonstrates how to use COM from a console mode perl program. However, I want to use COM from a perl CGI page and microsoft discourages ASP programmers from createing their own COM objects directly. ASP programmers are encouraged to use the built-in Server

RE: How to automate the sending of mail

2003-06-05 Thread Scot Robnett
I need my web site to automatically send an email confirmation. I'm using CGI Perl 5.6 on IIS on Win2000. What options are there for doing this? MIME::Lite Mail::Sendmail Win32::OLE -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Printing Foreign Language Characters from a CGI

2003-06-05 Thread Greenhalgh David
Hi all, A more CGI question this time. The website I have found myself responsible for needs to be bi-lingual, English and Japanese. My problem is, how do I persuade the CGI to output in Japanese characters? Can I use: print Content-Type: text/html\n\n; print Character-Set: shift-jis\n\n; to

Using defined array with split command

2003-06-05 Thread Scott, Joshua
Good evening, I'm having a hard time figuring out how to make a portion of my script work. Basically I'd like to split a specific field and use the names from an array as the scalar variable names for each field. Here is a snip of my code: # Begin Code $data = A Tab Separated

Re: Warnings/strict still needed?

2003-06-05 Thread Rob Dixon
James Edward Gray II wrote: On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote: Does it hurt performance having them? No. Are we sure about this? I find it really hard to believe that 'warnings' isn't affecting performance on some level. I doubt it's a big hit, but I

Re: Using defined array with split command

2003-06-05 Thread Rob Dixon
Hi Joshua Joshua Scott wrote: Good evening, I'm having a hard time figuring out how to make a portion of my script work. Basically I'd like to split a specific field and use the names from an array as the scalar variable names for each field. Here is a snip of my code: # Begin Code

Unix diff in perl

2003-06-05 Thread Ohad Ohad
hey, Is there a perl function/module that will help me calculate the difference between two files? Something like the diff Unix command. 10x Ohad. _ Protect your PC - get McAfee.com VirusScan Online

Re: Unix diff in perl

2003-06-05 Thread Sumit_Babu
hey, Is there a perl function/module that will help me calculate the difference between two files? Something like the diff Unix command. 10x Ohad. There is a perl module which can do the same. Check out http://search.cpan.org/search?query=diffmode=all for more information. -- To

RE: Unix diff in perl

2003-06-05 Thread Rai,Dharmender
use File::Compare -- From: Ohad Ohad[SMTP:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:31 PM To: [EMAIL PROTECTED] Subject: Unix diff in perl hey, Is there a perl function/module that will help me calculate the difference between two files?

One more newbie OLE question

2003-06-05 Thread Leon
I am just learning about OO programming and it is definitely really cool. I am reading David Roth's Win 32 Perl Programming and he uses word and excel as example applications. He calls a bunch of different (I think the term i am looking for here is methods but I just posted a question about

RE: One more newbie OLE question

2003-06-05 Thread Tobias Hoellrich
Try this as a starting point for the description of the Office Object model: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbaof10/htm l/oftocObjectModelApplication.asp In order to disect Type-Libraries, which contain information about Objects/Methods either use the

RE: Unix diff in perl

2003-06-05 Thread Rai,Dharmender
you can use File::Compare module to achieve that. -- From: Ohad Ohad[SMTP:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 2:31 PM To: [EMAIL PROTECTED] Subject: Unix diff in perl hey, Is there a perl function/module that will help me calculate the

What's the matter about the install?

2003-06-05 Thread Ying Liu
I don't have the root permission and I can't write to the root folder. I set the PREFIX=/mz/hd/liuyi, and I changed the following direction: INSTALLPRIVLIB INSTALLARCHLIB INSTALLSITELIB INSTALLSITEARCH INSTALLBIN INSTALLSCRIPT INSTALLMAN1DIR INSTALLMAN3DIR such as:

Re: Sending free SMS through perl

2003-06-05 Thread Tarun Dua
On Sat, 31 May 2003 20:55:13 +0530, Aman Thind wrote: Hi All How can I send a free SMS through perl ? I am fighting a losing battle with WWW-SMS-0.09. I created an account on gomobile.ch but everytime i try to send an sms using gomobile as the submodule I get an error msg saying my

Re: Unix diff in perl

2003-06-05 Thread Elias Assmann
On Thu, Jun 05, 2003 at 02:56:01PM +0530, [EMAIL PROTECTED] wrote: Is there a perl function/module that will help me calculate the difference between two files? Something like the diff Unix command. There is a perl module which can do the same. Check out

Re: Is empty directory?

2003-06-05 Thread Mark G
- Original Message - From: Jair Santos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 7:00 PM Subject: Is empty directory? Hi all, does anybody knows how to check if a diretory is empty? You can open it {opendir } and see for your self {readdir} Mark G

Flush Everything

2003-06-05 Thread Voodoo Raja
Hi there I have got a script running.. Its ment to repeat a particular sub routine using the after syntax All i want to do is clear everything in buffer ... since it eats up the memory I do not need any varaibles which I have defined in the sub. there are more then enough to init manually.

Re: Learning Graphics - Problem with Hello World Example / Fixed it!

2003-06-05 Thread Todd Wade
Clint [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I was able to get it fixed. Here's what I did in case someone else runs into the same problem: Changed from these lines: my $image = new GD::Image(401,201); (btw: this line is different than what is found in the text)

Re: Warnings/strict still needed?

2003-06-05 Thread Todd Wade
Michael Weber [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Just wondering. After I debug my perl scripts do I still need the strict and warnings flags? Does it hurt performance having them? Does it hurt security removing them? The scripts are for system admin only, not CGI

Perl - Web Development

2003-06-05 Thread Paul Kraus
This may be asking for biased opinions but here goes anyways... Is perl still a good choice for the web. For instance I need to setup a couple sites that are going to be running on IIS. Is perl still a good choice for speed ect... Or should I look at the newer technologies such as vb.net on for

Re: Perl - Web Development

2003-06-05 Thread Gabor Urban
From: Paul Kraus [EMAIL PROTECTED] Subject: Perl - Web Development Date: Wed, 4 Jun 2003 09:49:10 -0400 This may be asking for biased opinions but here goes anyways... Is perl still a good choice for the web. For instance I need to setup a couple sites that are going to be running on IIS. Is

Re: Perl - Web Development

2003-06-05 Thread Shlomi Fish
On Wed, 4 Jun 2003, Paul Kraus wrote: This may be asking for biased opinions but here goes anyways... Is perl still a good choice for the web. Yes. Perl is a very good choice from all aspects. For instance I need to setup a couple sites that are going to be running on IIS. Is perl still a

RE: cgi LWP::Simple script and Apache

2003-06-05 Thread Dan Muey
So now my questions would be: Can you open 216.239.51.100 in a browser? www.google.com Can you open 172.20.250.1 in a browser? www.wokingham.gov.uk Yes for both...I'm checking to see if the protocol is okay as we have a firewall and that may be interfering... Perhaps the

RE: cgi LWP::Simple script and Apache

2003-06-05 Thread NYIMI Jose (BMB)
Here : http://lists.perl.org/showlist.cgi?name=libwww http://lists.perl.org/ José. -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 4:27 PM To: Ben Crane Cc: [EMAIL PROTECTED] Subject: RE: cgi LWP::Simple script and Apache So now my

RE: cgi LWP::Simple script and Apache: Thanx

2003-06-05 Thread Ben Crane
Dan, Thanx a million for your help...It's given me more to look at and figure out. Hope I can return the favour sometime! Regards Ben __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- To

RE: cgi LWP::Simple script and Apache

2003-06-05 Thread Bob Showalter
Dan Muey wrote: So now my questions would be: Can you open 216.239.51.100 in a browser? www.google.com Can you open 172.20.250.1 in a browser? www.wokingham.gov.uk Yes for both...I'm checking to see if the protocol is okay as we have a firewall and that may be interfering...

Re: Error

2003-06-05 Thread lobach
OK, for anyone who runs into this or for myself if this happens again... I removed everything Perl and re-installed the ActiveState version (ActivePerl-5.8.0.806-MSWin32-x86.msi)... got the exact same error... so I removed everything again and installed an older version

RE: cgi LWP::Simple script and Apache: Thanx

2003-06-05 Thread Dan Muey
Dan, Thanx a million for your help...It's given me more to look at and figure out. No sweat, this list has helped me out a zillion times. Hope I can return the favour sometime! Cool. Regards Ben -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Where is @INC saved and other installation issues

2003-06-05 Thread Michael Muratet
Greetings I am trying to resolve a problem I had with the perl 5.8 that comes bundled with RedHat 9.0. It absolutely would not parse a regex the way it should, and so I downloaded a new tarball from CPAN and reloaded perl. RedHat puts perl in /usr/lib/perl5 rather than /usr/local/lib/perl5 and I

Re: Perl - Web Development

2003-06-05 Thread Jenda Krynicky
From: Shlomi Fish [EMAIL PROTECTED] On Wed, 4 Jun 2003, Paul Kraus wrote: This may be asking for biased opinions but here goes anyways... Is perl still a good choice for the web. Yes. Perl is a very good choice from all aspects. Definitely. Wish the bosses would see that. Or

Fw: Where is @INC saved and other installation issues

2003-06-05 Thread Michael Muratet
Begin forwarded message: Date: Wed, 4 Jun 2003 11:20:44 -0500 From: Michael Muratet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Where is @INC saved and other installation issues How do I get things _really_ clean? Where does @INC live? I'd like to start over, keep the RedHat

Re: Where is @INC saved and other installation issues

2003-06-05 Thread Peter Scott
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Michael Muratet) writes: Greetings I am trying to resolve a problem I had with the perl 5.8 that comes bundled with RedHat 9.0. It absolutely would not parse a regex the way it should, and so I downloaded a new tarball from CPAN and reloaded perl.

Braindead this morning - unwanted spc

2003-06-05 Thread Harry Putnam
Probably painfully obvious... Where is this preceding space coming from: cat test_space.pl ^ #!/usr/local/bin/perl -w open(FILE,file); @array = ( line 1\n, line 2\n, line 3\n, \n, ); print FILE @array; system(cat file);

Re: Braindead this morning - unwanted spc

2003-06-05 Thread James Edward Gray II
On Wednesday, June 4, 2003, at 11:17 AM, Harry Putnam wrote: Where is this preceding space coming from: print FILE @array; It's coming from your interpolation of the array in a string (@array). It joins them, adding a space between them by default. Try this: print FILE join '', @array;

RE: Braindead this morning - unwanted spc

2003-06-05 Thread Bob Showalter
Harry Putnam wrote: Probably painfully obvious... Where is this preceding space coming from: cat test_space.pl ^ #!/usr/local/bin/perl -w open(FILE,file); @array = ( line 1\n, line 2\n, line 3\n, \n, ); print

Database connection (ODBC) not closing?

2003-06-05 Thread BK GOOD
I have the following code to create a record into 2 tables in my SQL database. The 2 tables are WorkRequest where WRID is the KEY/Unique Identifier and File_details where FileID is the KEY/Unique Identifier but has WRID as a KEY for linking to the Work Request table. When I run this code, it

How to print a string that uses variables and operators

2003-06-05 Thread deborah
How do you get Perl to print an operator as a string? I want to print a mathematical expression and then print the answer. I've tried every combination that I can think of, but the script keeps getting aborted due to compilation errors because string found where operator expected. Well,

Am i taking the right approach (i have to learn to code this!)

2003-06-05 Thread Angel Gabriel
As some of you know, I'm attempting to create an internal system to automate some stuff. This is how I plan to do this... #!/usr/local/bin/perl include email reading modules include grep modules (if exists, not found any yet) include MySQL writing modules read email from pop mail box take

Re: Braindead this morning - unwanted spc

2003-06-05 Thread Harry Putnam
James Edward Gray II [EMAIL PROTECTED] writes: On Wednesday, June 4, 2003, at 11:17 AM, Harry Putnam wrote: Where is this preceding space coming from: print FILE @array; It's coming from your interpolation of the array in a string (@array). It joins them, adding a space between them by

Re: How to print a string that uses variables and operators

2003-06-05 Thread deborah
Thank you! The separating comma was what I was leaving out. Also, I wanted to actually print the variable name, so I escaped the $ symbol. Deb On Wednesday, June 4, 2003, at 12:00 PM, James Edward Gray II wrote: On Wednesday, June 4, 2003, at 11:47 AM, deborah wrote: Example: I want to print

Re: Am i taking the right approach (i have to learn to code this!)

2003-06-05 Thread Janek Schleicher
Angel Gabriel wrote at Wed, 04 Jun 2003 17:44:28 +0100: As some of you know, I'm attempting to create an internal system to automate some stuff. This is how I plan to do this... Year, that's exactly the way, you should start. It will be possible to translate your pseudo code nearly 1:1 to

Re: Perl - Web Development

2003-06-05 Thread Janek Schleicher
Paul Kraus wrote at Wed, 04 Jun 2003 09:49:10 -0400: This may be asking for biased opinions but here goes anyways... Is perl still a good choice for the web. For instance I need to setup a couple sites that are going to be running on IIS. Is perl still a good choice for speed ect... In

Re: Am i taking the right approach (i have to learn to code this!)

2003-06-05 Thread Jenda Krynicky
From: Angel Gabriel [EMAIL PROTECTED] As some of you know, I'm attempting to create an internal system to automate some stuff. This is how I plan to do this... #!/usr/local/bin/perl include email reading modules use Net::POP3; #or # use Mail::POP3Client; include grep modules

Scalars and Strict

2003-06-05 Thread Jeff Westman
This may sound trivial, but I am trying to declare and assign multiple scalars to the same variable in the same statement. This is what I have: #!/bin/perl -w $a = $b = apple;# works use strict; my ($a = $b) = apple; # does not works my $a = my $b = apple; # works .. but looks

Help with OO and Tk::FileDialog

2003-06-05 Thread David Faler
I'm trying to figure out how to get a directory or text entry in Perl/Tk. I am very new to this, but I can't figure out why this won't work. It works maybe 1 time out of 10. The rest of the time I get this error: Tk::Error: grab failed: window not viewable at

RE: Scalars and Strict

2003-06-05 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Jeff Westman wrote: This may sound trivial, but I am trying to declare and assign multiple scalars to the same variable in the same statement. This is what I have: #!/bin/perl -w $a = $b = apple;# works use strict; my ($a = $b) = apple; # does not works do: my ($a,$b) =

Re: tr///

2003-06-05 Thread zentara
On Wed, 04 Jun 2003 10:55:40 +1000, [EMAIL PROTECTED] (Paul Morris) wrote: I found this at: http://www.suse.com/us/private/support/howto/secprog/secprog8.html ...but am having difficulty working it out, because it doesn't seem to do what I think it should (and I may be the problem!). To

Re: Scalars and Strict

2003-06-05 Thread George Schlossnagle
On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Jeff Westman wrote: This may sound trivial, but I am trying to declare and assign multiple scalars to the same variable in the same statement. This is what I have: #!/bin/perl -w $a = $b =

Re: Scalars and Strict

2003-06-05 Thread Stuart White
Would declaring all your variables with one my suffice? then your first line before use strict; should work. Like this: my ($a, $b); $a = $b = 'apple'; --- Jeff Westman [EMAIL PROTECTED] wrote: This may sound trivial, but I am trying to declare and assign multiple scalars to the same

Re: Scalars and Strict

2003-06-05 Thread Jeff Westman
yeah, that works, but I was trying to do it in one statement as a scalar assigment. Thanks JW --- Stuart White [EMAIL PROTECTED] wrote: Would declaring all your variables with one my suffice? then your first line before use strict; should work. Like this: my ($a, $b); $a = $b =

Re: Scalars and Strict

2003-06-05 Thread Jeff Westman
I like this solution! Cool Thanks George and David. JW --- George Schlossnagle [EMAIL PROTECTED] wrote: On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Jeff Westman wrote: This may sound trivial, but I am trying to declare

Re: tr///

2003-06-05 Thread John W. Krahn
Zentara wrote: On Wed, 04 Jun 2003 10:55:40 +1000, [EMAIL PROTECTED] (Paul Morris) wrote: I found this at: http://www.suse.com/us/private/support/howto/secprog/secprog8.html ...but am having difficulty working it out, because it doesn't seem to do what I think it should (and I may be

Re: Scalars and Strict

2003-06-05 Thread royce . wells
try my ($a,$b)=(apples,apples); In the other example it was pulling values from an array of scalars. In your example you are only providing 1 scalar for 2 scalar variables to share. Royce The right word may be effective, but no word was ever as effective as a rightly timed pause.

Re: Scalars and Strict

2003-06-05 Thread Rob Dixon
Jeff Westman wrote: --- George Schlossnagle [EMAIL PROTECTED] wrote: On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Jeff Westman wrote: This may sound trivial, but I am trying to declare and assign multiple scalars to the

Re: Regular expressions

2003-06-05 Thread zentara
On Tue, 3 Jun 2003 22:38:47 -0700 (PDT), [EMAIL PROTECTED] (Saurabh Singhvi) wrote: well i was trying to understand the regular expressions in perl when i came across STDIN i tried my best but i havent been able to get the slightest idea on how the input thing works. The editor i use is DzSoft.

Re: Scalars and Strict

2003-06-05 Thread Jeff Westman
Hi Rob, --- Rob Dixon [EMAIL PROTECTED] wrote: Jeff Westman wrote: --- George Schlossnagle [EMAIL PROTECTED] wrote: On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Jeff Westman wrote: This may sound trivial, but I am

Modify links

2003-06-05 Thread Dan Muey
I'm trying to work out a regex that will do this: Take an entire page's html: my $html_code; # all lines in thes one variable And make any href's that are relative absolute by prepending $url into them: $url = http://myclonesite.com;; make a href=./documents/help.hml into a

RE: Modify links

2003-06-05 Thread Hanson, Rob
Try using URI to figure out the absolute URL. use URI; # the base is the *current absolute page* my $base_url = 'http://foo.com/documents/help.html'; print URI-new_abs('doc1.html', $base_url), \n; print URI-new_abs('./doc2.html', $base_url), \n; print URI-new_abs('../documents/doc3.html',

Re: Regular expressions

2003-06-05 Thread John W. Krahn
Zentara wrote: On Tue, 3 Jun 2003 22:38:47 -0700 (PDT), [EMAIL PROTECTED] (Saurabh Singhvi) wrote: well i was trying to understand the regular expressions in perl when i came across STDIN i tried my best but i havent been able to get the slightest idea on how the input thing works. The

Warnings/strict still needed?

2003-06-05 Thread Michael Weber
Just wondering. After I debug my perl scripts do I still need the strict and warnings flags? Does it hurt performance having them? Does it hurt security removing them? The scripts are for system admin only, not CGI where I would assume they should be left in. Thanx! -Michael -- To

Re: Regular expressions

2003-06-05 Thread John W. Krahn
John W. Krahn wrote: Zentara wrote: All programs have 3 default input-output filehandles, ^ 5 they are STDIN, STDOUT, and STDERR. ARGV, ARGVOUT Or eight if you include stdin, stdout and stderr. :-) John -- use Perl; program fulfillment

Re: Warnings/strict still needed?

2003-06-05 Thread John W. Krahn
Michael Weber wrote: Just wondering. After I debug my perl scripts do I still need the strict and warnings flags? No. Does it hurt performance having them? No. Does it hurt security removing them? No. The scripts are for system admin only, not CGI where I would assume they should

RE: Modify links

2003-06-05 Thread Dan Muey
That did the trcik! Nice and clean, thanks Rob -Original Message- From: Hanson, Rob [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:55 PM To: Dan Muey; [EMAIL PROTECTED] Subject: RE: Modify links Try using URI to figure out the absolute URL. use URI; # the base

Re: Warnings/strict still needed?

2003-06-05 Thread James Edward Gray II
On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote: Does it hurt performance having them? No. Are we sure about this? I find it really hard to believe that 'warnings' isn't affecting performance on some level. I doubt it's a big hit, but I would be very surprised if it doesn't cost

Re: Warnings/strict still needed?

2003-06-05 Thread John W. Krahn
James Edward Gray II wrote: On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote: Does it hurt performance having them? No. Are we sure about this? I find it really hard to believe that 'warnings' isn't affecting performance on some level. I doubt it's a big hit, but I

Re: Warnings/strict still needed?

2003-06-05 Thread Paul Johnson
On Wed, Jun 04, 2003 at 03:58:44PM -0500, James Edward Gray II wrote: On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote: Does it hurt performance having them? No. Are we sure about this? I find it really hard to believe that 'warnings' isn't affecting performance on some

Appending to beginning of file?

2003-06-05 Thread Josh Berkus
Folks, Hit there! I just joined the list. Amazing what one can do with rudimentary web-browsing skills. Is there any easy way to append a line or lines to the *beginning* of a text file? I've been through the Llama and Camel books, and the perldoc for Open, and I can't seem to find an easy

Re: Appending to beginning of file?

2003-06-05 Thread Beau E. Cox
- Original Message - From: Josh Berkus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 11:17 AM Subject: Appending to beginning of file? Folks, Hit there! I just joined the list. Amazing what one can do with rudimentary web-browsing skills. Is there any easy

Re: Appending to beginning of file?

2003-06-05 Thread Josh Berkus
John, Beau, This is a Frequently Asked Question and the answer can be found in Perl's FAQs. perldoc -q beginning of a file Thanks! The perldoc -q technique is really good to know about. Looks like I'd be able to do this if I was using 5.80, but I'm not :-( So I'll just transfer the

Re: Appending to beginning of file?

2003-06-05 Thread James Edward Gray II
On Wednesday, June 4, 2003, at 04:43 PM, Josh Berkus wrote: Looks like I'd be able to do this if I was using 5.80, but I'm not :-( Tie::File can be retrieved off of the CPAN for earlier versions of Perl where is wasn't standard, if you can install modules. James -- To unsubscribe, e-mail:

Re: Appending to beginning of file?

2003-06-05 Thread Josh Berkus
James, Tie::File can be retrieved off of the CPAN for earlier versions of Perl where is wasn't standard, if you can install modules. Yeah. Sadly, it's a vendor system :-( I can't install anything. Happily, copying file content is very fast, even with 40,727 lines in the file! -- -Josh

Re: Scalars and Strict

2003-06-05 Thread Rob Dixon
Jeff Westman wrote: Hi Rob, --- Rob Dixon [EMAIL PROTECTED] wrote: Jeff Westman wrote: --- George Schlossnagle [EMAIL PROTECTED] wrote: On Wednesday, June 4, 2003, at 02:40 PM, Wagner, David --- Senior Programmer Analyst --- WGO wrote: Jeff Westman wrote: This

Re: Warnings/strict still needed?

2003-06-05 Thread Tassilo von Parseval
On Wed, Jun 04, 2003 at 03:58:44PM -0500 James Edward Gray II wrote: On Wednesday, June 4, 2003, at 03:45 PM, John W. Krahn wrote: Does it hurt performance having them? No. Are we sure about this? I find it really hard to believe that 'warnings' isn't affecting performance on some