Perl/Shell Knowledge Sharing

Perl Interview Questions and Answers

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: perl

No comments:

Post a Comment

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

Search This Blog

Blog Archive

  • ►  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 (9)
    • ►  December (4)
    • ►  June (4)
    • ►  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)
Simple theme. Powered by Blogger.