in reply to Why don't file handles have sigils?
#!/usr/bin/env perl use strict; use warnings; { open (OUTPUT,"> out.txt") or die; } print OUTPUT "a"; # Works OUTPUT must still be in scope { open (my $new_out, ">","new_out.txt") or die $!; print $new_out "b"; } #print $new_out "c"; #this will not work
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why don't file handles have sigils?
by perlfan (Parson) on Jul 09, 2014 at 03:13 UTC |