in reply to Using '/r' with '~~ $var' in format
#!/usr/bin/perl -w use strict; my $last_line_label = 'IMPRESSION/PLAN: '; my $line = 'I discussed otitis media with her but since her ear +s are normal today, we do not need to do anything with them.'; my $blank_line = '_____________________________'; my $sig = 'Marcus Welby, M.D.'; my $prep_by = 'MW/bnj'; format FLDFMT = @<<<<<<<<<<<<<<<<^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $last_line_label, $line ~~ ^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $line @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $blank_line @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $sig @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $prep_by . $~ = 'FLDFMT'; write;
| Mynd you, mønk bites Kan be pretti nasti... |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using '/r' with '~~ $var' in format--"formats on the fly"
by ff (Hermit) on Nov 01, 2002 at 22:11 UTC | |
by grep (Monsignor) on Nov 02, 2002 at 00:01 UTC | |
by ff (Hermit) on Nov 05, 2002 at 06:28 UTC |