Ron Savage
and 1 contributors

NAME

bommer.pl - Check, Add and Remove BOMs

SYNOPSIS

bommer.pl [options]

        Options:
        -action   $string
        -bom_name $string
        -help
        -input_file  $file_name
        -output_file $file_name

All switches can be reduced to a single letter.

Exit value: 0.

OPTIONS

-action $string

Specify the action wanted:

o add

Add the BOM named with the bom_name option to input_file. Write the result to output_file.

o remove

Remove the BOM from the input_file. Write the result to output_file.

o test

Report the BOM status of input_file.

Default: ''.

This option is mandatory.

-bom_name => $string

Specify which BOM to add to input_file.

This option is mandatory if the action is add.

Values (always upper-case):

o UTF-32-BE
o UTF-32-LE
o UTF-16-BE
o UTF-16-LE
o UTF-8
-help

Print help and exit.

-input_file $file_name

Specify the input file.

Default: ''.

This option is mandatory.

-output_file $file_name

Specify the output file.

And yes, it can be the same as the input file, but does not default to the input file. That would be dangerous.

Default: ''.