CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2007
    Posts
    90

    perl script to read from a file and put in a scalar variable

    Hi,
    I need to read the content of a file data.txt
    Code:
    dat
    data1
    into a variable...@temp.
    I am getting both the values in $temp[0]...

    can anyone help me??..

    else i want it in a scalar variable like
    $temp1= datata1 ---something like this...delimited by a delimiter...

    can anyone help me??

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: perl script to read from a file and put in a scalar variable

    You could easily have searched the Google or any other engine for this topic.

    http://www.perlfect.com/articles/perlfile.shtml
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured