in reply to Basic rest service help
$filename is not $file# This is a helper to slurp up files, I could have just used File::Slu +rp sub slurp($) { my $filename = shift; # Slurp up the contents of the given filename open my $slurpy, '<', $file or die "Cannot open $file: $!"; return do { local $/; <$slurpy> }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Basic rest service help
by tilly (Archbishop) on Jan 24, 2011 at 14:54 UTC | |
|
Re^2: Basic rest service help
by Anonymous Monk on Jan 24, 2011 at 09:36 UTC | |
by Anonymous Monk on Jan 24, 2011 at 09:58 UTC | |
by Anonymous Monk on Jan 24, 2011 at 10:17 UTC | |
by Anonymous Monk on Jan 24, 2011 at 11:11 UTC |