Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: renaming the file using perl

by nysus (Parson)
on Mar 16, 2017 at 18:18 UTC ( [id://1184914]=note: print w/replies, xml ) Need Help??


in reply to Re^2: renaming the file using perl
in thread renaming the file using perl

Your code is very hard to follow. Can I suggest you please:

  • Place comments in your code to help explain what you are trying to accomplish and what you think each chunk of code is doing
  • Use variable names in place of your long string concatenations to make it more readable
  • Use in-line comment for each variable name to help explain what the variable represents

This will not only help us help you, it will help you understand your own code better. When you are new at programming, it's very difficult to keep track of what you are trying to do and it is easy to get lost. Comments and liberal use of variables will help you out a great deal.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184914]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found