From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
12345678910111213141516171819202122232425 #!/usr/bin/env perluse strict;use warnings;use WebService::SQLFormat;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
#!/usr/bin/env perl
use
strict;
warnings;
WebService::SQLFormat;
my
$formatter
= WebService::SQLFormat->new(
identifier_case
=>
'upper'
,
reindent
=> 1,
);
$in
;
while
(<STDIN>) {
.=
$_
}
||=
shift
@ARGV
die
'No SQL found'
unless
print
->format_sql(
# PODNAME: sql-webformat