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
[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
--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
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.
>
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
[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
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
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
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
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
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
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
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
13 matches
Mail list logo