S
Steve K.
I seem to be having a difficult time understanding formats. I've figured
out how to use formline easy enough, but when trying to test format and
write, using an example from perldoc perlform, it hangs, unless I
comment out the line with the call to write. If I uncomment it, the
program hangs and eats more and more CPU. I don't see how this can be
for such a small program?
#!/usr/local/bin/perl
use strict;
our $text = "line 1\nline 2\nline 3";
format STDOUT =
Text: ^*
$text
~~ ^*
$text
out how to use formline easy enough, but when trying to test format and
write, using an example from perldoc perlform, it hangs, unless I
comment out the line with the call to write. If I uncomment it, the
program hangs and eats more and more CPU. I don't see how this can be
for such a small program?
#!/usr/local/bin/perl
use strict;
our $text = "line 1\nline 2\nline 3";
format STDOUT =
Text: ^*
$text
~~ ^*
$text