CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [tc] Remove any amount of char from front and back of a string in a file: Edit Log



BillKSmith
Veteran

Jun 8, 2018, 8:49 PM


Views: 2728
Re: [tc] Remove any amount of char from front and back of a string in a file

It is true that removing strict and warning from a correct program would not introduce any new errors. But why would you want to? They do not add any runtime penalty. They do remain on duty for every edit you make in the future. There are runtime conditions that produce warnings that are ignored if warnings are not enabled. If you really intend to ignore some warning, disable warning in a limited scope, not the whole program.

On another topic, you should not be using function prototypes. They appear to be similar to those in "C" and other languages, but they have a very different meaning! Their purpose is not to catch errors, but rather to allow you to override certain built-in functions which would otherwise be impossible.
Good Luck,
Bill

(This post was edited by BillKSmith on Jun 8, 2018, 9:07 PM)


Edit Log:
Post edited by BillKSmith (Veteran) on Jun 8, 2018, 9:07 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives