At 10:39 AM 3/13/04 -0800, R. Joseph Newton wrote: >> my $header = <<'end_of_header'; >> # File: $filename >> end_of_header >> >> my $filename = 'xyz'; >> print $header, "\n"; # output: want to see # File: xyz, but get # File: >> $filename > >I am not sure how the above is any more clear than it would be if you assigned a >value to $filename first.
Mainly that $filename would have different values at different times, in different code locations. >I still can't see a good reason for putting that low-level implementation detail >at the top of the script, but this approach should work. I agree, your approach is better at avoiding hidden dependencies and at keeping code and data closer together. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>