[ create a new paste ] login | about

Link: http://codepad.org/RtBof5Z1    [ raw code | output | fork ]

slevy1ster - Perl, pasted on Jan 22:
1
2
3
4
5
6
7
8
9
10
use constant EOL_CHAR => "\n";

my @arr = qw( 123 456 789 );  # like bash and IFS

$\ = EOL_CHAR;

foreach(@arr) {
  
  print $_;
}


Output:
1
2
3
123
456
789


Create a new paste based on this one


Comments: