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

Ok.

I'm sorry but I don't know what you mean? Can you be more specific?

Replies are listed 'Best First'.
Re^3: Backup User's files
by karlgoethebier (Abbot) on Jan 08, 2018 at 11:08 UTC
    "...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

      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