User Profile

Collapse

Profile Sidebar

Collapse
ebmt2006
ebmt2006
Last Activity: Mar 27 '07, 02:40 AM
Joined: Feb 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ebmt2006
    started a topic Reading a line from a file
    in Perl

    Reading a line from a file

    How do I read a text from a file using perl? What I have is a bunch of text inside a file and I need to read that line I want ONLY.

    What I have reads the whole content inside the file.

    For example:
    I have a file called “file.txt”
    Inside that file
    I have 200 lines of texts
    I want to only to read
    “The script is great good job” and
    “The script is bad try agin”

    And...
    See more | Go to post
    Last edited by miller; Mar 16 '07, 10:00 PM. Reason: Code Tag

  • ebmt2006
    started a topic Parsing a Text File
    in Perl

    Parsing a Text File

    I have this data inside a file saved as “filename.txt” with bunch of other data what I want to do is I want to sort the following data and have an output as shown below

    These lines are inside my text file:

    number_of_stude nts............ .... Total_by_gender 25 (F 11 => 44.0) (M 14 => 56.0)

    number_of_stude nts............ .... Total_by_gender 73 (F 69 => 94.5) (M 4 => 5.5)
    ...
    See more | Go to post
No activity results to display
Show More
Working...