W
woof
Monkey'd right out of perlform, I 'print' a format string to
to a variable with swrite like so:
$FO_UP = ' @<<<<<<<<<<<<< | ^<<<<<<<<<<<<<<<<<<<<<<<<<';
$name = 'John Doe';
$note = 'this is a very long note some would say for a 25ish space';
$psec .= swrite(<<"END", $name, $note);
sub
swrite {
my $format = shift;
$^A = "";
formline($format, @_);
return $^A;
}
Isn't the second format string "^<<<<<<<<" supposed to produce
multiline output?
I expect something like this:
John Doe this is a very long
note some would say
for .....
I get this:
John Doe this is a very long
Am I right or wrong? Should I expect the first or second output?
Thanks
to a variable with swrite like so:
$FO_UP = ' @<<<<<<<<<<<<< | ^<<<<<<<<<<<<<<<<<<<<<<<<<';
$name = 'John Doe';
$note = 'this is a very long note some would say for a 25ish space';
$psec .= swrite(<<"END", $name, $note);
sub
swrite {
my $format = shift;
$^A = "";
formline($format, @_);
return $^A;
}
Isn't the second format string "^<<<<<<<<" supposed to produce
multiline output?
I expect something like this:
John Doe this is a very long
note some would say
for .....
I get this:
John Doe this is a very long
Am I right or wrong? Should I expect the first or second output?
Thanks