skazat has asked for the wisdom of the Perl Monks concerning the following question:
Hello all, a slight mystery today,
I have a small project that I'm using formats with, the problem is that I want to save what the format gives back in a variable, and not printed to a Filehandle. It seems that you, well can't :) This is somewhat what I'm doing:
format TEST @<<<<<<<<<<@<<<<<<<<<< $first_name $last_name . my $first_name = 'justin'; my $last_name = 'simoni'; my $fullname = write TEST;
Just looking at the above example, you can tell it's wrong, as write... well writes to a filehandle, but the example does show what I want to do.
Is there a way to do what I want? If not... why not? I bet there's a perl module for this or something...
-justin simoni
!skazat!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Formats and Variables
by japhy (Canon) on Jun 21, 2001 at 03:02 UTC | |
by Abigail (Deacon) on Jun 21, 2001 at 03:26 UTC | |
by Aighearach (Initiate) on Jun 21, 2001 at 03:46 UTC | |
by skazat (Chaplain) on Jun 21, 2001 at 03:27 UTC | |
|
Re: Formats and Variables
by runrig (Abbot) on Jun 21, 2001 at 03:05 UTC | |
by goliard (Initiate) on Jan 25, 2002 at 05:40 UTC | |
by runrig (Abbot) on Jan 25, 2002 at 08:59 UTC |