in reply to Re^6: Newline's creep in, while using Tie::File
in thread Newline's creep in, while using Tie::File

when I learnt to use Perl in the early 1990's I did so out of necessity and by looking at a very limited pool of other people's code which either didn't include strictures or, if it did I didn't notice

That will be because it didn't exist in the language back then. I think it was around 5.002 when it was introduced.

I have experimented with turning on use strict; and got frustrated at having to declare variables before use so ended up not bothering. It sort of slowed down the initial code development although, granted, it may well have speeded things up down the line had I persevered.

I don't see why it would slow down initial code development at all. Could you explain more?

FWIW, here is one of my recent nodes showing the benefit. And another one.


🦛

Replies are listed 'Best First'.
Re^8: Newlines creep in, while using Tie::File
by tobyink (Canon) on Nov 17, 2020 at 13:11 UTC

    strict.pm was first included in Perl 5.0. warnings.pm came in 5.6.

      I'm still using ancient Perl but not that ancient...
      I'm using 5.16.003 dating from 2012 unfortunately

        I'm using 5.26 for my day-to-day use. My system perl is 5.30, so pretty recent. I have various other versions for testing though, going back to 5.6.1.