
japhy
Enthusiast
/ Moderator
Feb 12, 2001, 3:29 PM
Post #2 of 3
(601 views)
|
Your code reference is never getting called, and if it were, it would be printing the contents, not storing it in a string. Perhaps you want to do:
my $info; { local (*FILE, $/); open FILE, $filename or die "can't read $filename: $!"; $info = <FILE>; } Jeff "japhy" Pinyan -- accomplished hacker, teacher, lecturer, and author
|