in reply to Re^2: making a list
in thread making a list and saving results
use{ local $" = "\n"; open my $fh, '>', "$ENV{HOME}/number_list.txt" or die $!; print $fh "@list\n"; }
Of course it's just to show you that you can put whatever separator inside $"; if you want a clean solution, use Zaxo's.my $prefix = "something"; { local $" = "\n$prefix"; open my $fh, '>', "$ENV{HOME}/number_list.txt" or die $!; print $fh "$prefix@list\n"; }
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.
|
|---|