From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

#!/usr/bin/env perl
use strict;
my $formatter = WebService::SQLFormat->new(
identifier_case => 'upper',
reindent => 1,
);
my $in;
while (<STDIN>) {
$in .= $_;
}
$in ||= shift @ARGV;
die 'No SQL found' unless $in;
print $formatter->format_sql($in);
# PODNAME: sql-webformat