in reply to Re^4: Perl code to format the text file by inserting tag in blank line
in thread Perl code to format the text file by inserting tag in blank line

[...] i cannot use the modules [...] For security reasons [...]

If you want security, you don't reinvent the wheel, but instead use modules. See Re^3: My promiscous singleton, Re^4: CSV file with double quotes and many other postings.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re^5: Perl code to format the text file by inserting tag in blank line