Hacker News new | ask | show | jobs
by majewsky 3257 days ago
You'd like Perl:

  open my $file, '>', 'hello';
  print{$file} "Hello";