Perl/Shell/Python Knowledge Sharing

Perl, shell, python Interview Questions and Answers and quiz

Thursday, June 19, 2014

Change Input record separator


Change input record separator


$/=undef; #Read the whole file in at once
$/=""; #Read in paragraph by paragraph
$/="\n%\n"; #Read in Unix fortunes
Posted by perlknowledge at 5:29 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Input record seperator, perl

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Labels

  • perl (225)
  • Python (30)
  • Quiz (8)
  • C (6)
  • Linux (6)
  • AWS (3)
  • PHP (1)
  • Vi (1)

Blog Archive

  • ►  2026 (38)
    • ►  October (3)
    • ►  September (35)
  • ►  2017 (1)
    • ►  March (1)
  • ▼  2014 (23)
    • ►  November (1)
    • ►  July (1)
    • ▼  June (5)
      • Usage of FindBin and Require Module
      • Change Input record separator
      • <> operator
      • Perl Class Tutorial
      • What is a Module
    • ►  April (4)
    • ►  March (6)
    • ►  January (6)
  • ►  2013 (8)
    • ►  December (4)
    • ►  June (3)
    • ►  March (1)
  • ►  2012 (5)
    • ►  November (1)
    • ►  January (4)
  • ►  2011 (215)
    • ►  November (5)
    • ►  September (1)
    • ►  August (5)
    • ►  July (11)
    • ►  June (6)
    • ►  May (17)
    • ►  April (16)
    • ►  March (14)
    • ►  February (9)
    • ►  January (131)
  • ►  2010 (42)
    • ►  December (42)
© 2026 Purandaran Vudhayagiri. All Rights Reserved.. Theme images by Flashworks. Powered by Blogger.