in reply to Re^3: Copying files from one file to another file
in thread Copying files from one file to another file

the path is written in terminal/ command window right? " code " should I put those apostrophe? Data::Dump::dd() is enough in the first line of the code?

  • Comment on Re^4: Copying files from one file to another file

Replies are listed 'Best First'.
Re^5: Copying files from one file to another file
by AnomalousMonk (Archbishop) on Feb 20, 2018 at 09:39 UTC
    the path is written in terminal/ command window right?

    Yes.

    " code " should I put those apostrophe?

    No. The double-quotes (not apostrophes) are only needed on the command line for specifying source code for the  -e command-line switch. See perlrun. The command-line format is only my personal way of presenting example code. What is found inside the " code " double-quotes (but not the double-quotes themselves!) is the source code you can put into a regular Perl  .pl source code file to be run from the command line in the usual way (assuming Windows):
        c:\yourprompt>perl your-source-code-file.pl

    Data::Dump::dd() is enough in the first line of the code?

    This is what I would put on the first few lines of my source file:

    use warnings; # always use strict; # always use Data::Dump qw(dd); # if you want to use dd() ... # the rest of your source code


    Give a man a fish:  <%-{-{-{-<