Re: How to put a variable value into a text file

2004-02-01 Thread Jan Eden
R. Joseph Newton wrote: >Jan Eden wrote: > >>Hi Stuart, >> >>@testarray gets the content of testmessage.txt, which contains the >>string '$name'. You cannot manipulate this string by setting the >>variable $name. You could do: >> >>@testarray =~ s/\$name/$name/g; >> >>which will replace the liter

Re: How to put a variable value into a text file

2004-01-30 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > > Hi Joseph: > > Thanks very much for the feedback. Unfortunately for me, > I've been totally swamped with tasks totally unrelated to > Perl. I've had virtually no time to spend on this. I > hope to have time this weekend to look at Perl related > activities (my wife

Re: How to put a variable value into a text file

2004-01-30 Thread Daniel Staal
--As off Friday, January 30, 2004 7:57 AM -0500, [EMAIL PROTECTED] is alleged to have said: Basically, I wanted to know how to put a receipient's name into a canned letter. Like this. $name = "Joe Blow" The canned letter template: --As for the rest, it is mine. Has anyone pointed out Text::Te

Re: How to put a variable value into a text file

2004-01-30 Thread stuart_clemons
n language ! - Stuart "R. Joseph Newton" <[EMAIL PROTECTED]> 01/30/2004 12:50 AM To [EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re: How to put a variable value into a text file [EMAIL PROTECTED] wrote: > > Here's what it prints: My name is $name. >

Re: How to put a variable value into a text file

2004-01-29 Thread R. Joseph Newton
Jan Eden wrote: > Hi Stuart, > > @testarray gets the content of testmessage.txt, which contains the string '$name'. > You cannot manipulate this string by setting the variable $name. You could do: > > @testarray =~ s/\$name/$name/g; > > which will replace the literal string '$name' using your var

Re: How to put a variable value into a text file

2004-01-29 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > > Here's what it prints: My name is $name. > > Here's the testmessage.txt file: My name is $name. Hi Stuart, I think that there is a conceptual problem here. This really isn't the appropriate way to get modular code into a program. Programming would be a dangerous

RE: How to put a variable value into a text file

2004-01-26 Thread McMahon, Chris
Hi Stuart... Below was one of my first "real" scripts, that is, that folks at work use. I did mine interactively. It goes through a file of arbitrary length asking the user to change xxx values for "ComputerID=xxx" and for "Address=xxx". I think the next-to-last line is slightl

Re: How to put a variable value into a text file

2004-01-25 Thread stuart_clemons
01/25/2004 03:03 PM To [EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re: How to put a variable value into a text file On Sun, 2004-01-25 at 14:33, [EMAIL PROTECTED] wrote: > Hi all: > > I'm trying to put a variable value into a text file. I've tried a few > things with n

Re: How to put a variable value into a text file

2004-01-25 Thread stuart_clemons
Thanks for the help. I just got back on-line. I'll give these a try. Thanks again ! "Randy W. Sims" <[EMAIL PROTECTED]> 01/25/2004 03:19 PM To Jan Eden <[EMAIL PROTECTED]> cc [EMAIL PROTECTED], Perl Lists <[EMAIL PROTECTED]> Subject Re: How to put

Re: How to put a variable value into a text file

2004-01-25 Thread Randy W. Sims
On 1/25/2004 3:02 PM, Jan Eden wrote: Hi Stuart, @testarray gets the content of testmessage.txt, which contains the string '$name'. You cannot manipulate this string by setting the variable $name. You could do: @testarray =~ s/\$name/$name/g; which will replace the literal string '$name' using y

Re: How to put a variable value into a text file

2004-01-25 Thread Kevin Old
On Sun, 2004-01-25 at 14:33, [EMAIL PROTECTED] wrote: > Hi all: > > I'm trying to put a variable value into a text file. I've tried a few > things with no success. > > Anyone know how to do this ? Is it doable ? I'm pretty sure I read how > to do this somewhere, so I'm about to hit the Perl

Re: How to put a variable value into a text file

2004-01-25 Thread Jan Eden
Hi Stuart, @testarray gets the content of testmessage.txt, which contains the string '$name'. You cannot manipulate this string by setting the variable $name. You could do: @testarray =~ s/\$name/$name/g; which will replace the literal string '$name' using your variable's content. I am just a

How to put a variable value into a text file

2004-01-25 Thread stuart_clemons
Hi all: I'm trying to put a variable value into a text file. I've tried a few things with no success. Anyone know how to do this ? Is it doable ? I'm pretty sure I read how to do this somewhere, so I'm about to hit the Perl books to see if I can find it. Any help will be appreciated. He