Join scalar fields into a comma-separated row.

CSV-Like Rows

csv_like_rows.pl
use strict;
use warnings;

my $city = ;
my $count = 3;
my $row = join(",", "city", $city, $count);

print "city=$city\n";
print "count=$count\n";
print "row=$row\n";
use strict;
use warnings;

my $city = ;
my $count = 3;
my $row = join(",", "city", $city, $count);

print "city=$city\n";
print "count=$count\n";
print "row=$row\n";
use strict;
use warnings;

my $city = ;
my $count = 3;
my $row = join(",", "city", $city, $count);

print "city=$city\n";
print "count=$count\n";
print "row=$row\n";
csv-like-row Comma-separated text is a compact way to store one record per line.