in reply to Re^2: Backup User's files
in thread Backup User's files

"...I don't know what you mean...more specific?"

Sure. I guessed that you at least missed a semicolon which results in an syntax error - the message points to the wrong line as usual - if you run perl -c your_program.pl.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Replies are listed 'Best First'.
Re^4: Backup User's files
by peli (Initiate) on Jan 08, 2018 at 19:08 UTC

    Karl, I run the script and here's the output from the terminal:

    MacPeter:begperl peli$ perl -c postinstall postinstall syntax OK MacPeter:begperl peli$

    Peter

      Yes, may be. But if you add use strict; use warnings; as kcott suggested you should get something like this:

      perl -c peli.pl Global symbol "$APPSUPPORT_PATH" requires explicit package name (did y +ou forget to declare "my $APPSUPPORT_PATH"?) at peli.pl line 7.#!/bin +/shBEGIN not safe after errors--compilation aborted at peli.pl line 7 +.

      The only other change i made to your program was changing the magic line AKA shebang to #!/usr/bin/env perl.

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

        If I use warnings, every line is wrong? The "$APPSUPPORT_PATH" is declared in the code to "/Library/Application Support/MakeMusic/Finale" and it doesn't matter if I use "\" for whitespace or not, it works anyhow.

        Peter