in reply to Problems with special characters in Linux file names

You use shell_quote where you shouldn't. (And, arguably, you don't use it where you should.)

-e needs a path, not a piece of shell code.

my $src_qfn = 'BulletinV3, 1 Montana 20xx-xx-xx (print).pdf_FN_TEMPLAT +E'; if (-e $src_qfn) { ... } else { ... }

Or with error checking:

my $src_qfn = 'BulletinV3, 1 Montana 20xx-xx-xx (print).pdf_FN_TEMPLAT +E'; if ( stat( $src_qfn ) ) { ... } else { die( "Can't stat `$src_qfn`: $!\n" ) if !$!{ ENOENT }; ... }

As for that message of command at the bottom,

system( "zenity", "--title" => "Rename problem", "--width" => 400, "--error", "--text" => "Can't rename `$src_qfn` to `$dst_qfn`: $!", )

Replies are listed 'Best First'.
Re^2: Problems with special characters in Linux file names
by EigenFunctions (Beadle) on Sep 13, 2022 at 15:32 UTC

    I put the code snippet, which came directly from my program, into a file and, it works! There is so little code, I don't know how it works in one place and NOT the other.

    I'll post another comment as soon as I find what I did wrong.

    Sorry

    Thanks,
      EigenFunctions
      OpSys: Ubuntu 18.04; Perl: Perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 71 registered patches)

      Sorry, sorry, sorry! Operator error! It wasn't the filename, the problem was I didn't include the path. I added the path and all is well.

      I'm so embarrassed. Please ignore this post!

      Thanks,
        EigenFunctions
        OpSys: Ubuntu 18.04; Perl: Perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-gnu-thread-multi (with 71 registered patches)

        Don’t be embarrassed. Almost every monk has a slew of ridiculous mistakes in their back catalog. Learning and building are more important than the bumps along the way.