Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^7: Newlines creep in, while using Tie::File

by hippo (Chancellor)
on Nov 17, 2020 at 12:04 UTC ( #11123734=note: print w/replies, xml ) Need Help??

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 was first included in Perl 5.0. 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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2021-01-25 08:55 GMT
Find Nodes?
    Voting Booth?