Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Tags for this Thread

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Papa Roach
    Papa Roach's Avatar
    Guest

    How do I open a Perl file? I have Perl 5.10.0 . I've stored it in F drive.?

    Is it by writing the path ""F:>/Perl/bin/edit xx.perl"" in MS-DOS?

  2. #2
    Wi-Skier
    Wi-Skier's Avatar
    Guest
    You use the open function.

    e.g.:
    ================
    #Input assuming a plain text file
    open FILEHANDLE ">f:/path/to/input/file";
    #Output
    open OUTFILE "<f:/path/to/output/file";

    foreach $Record (<FILEHANDLE>) {
    print OUTFILE $Record;
    }

    close OUTFILE;
    close FILEHANDLE;

 

 

Quick Reply Quick Reply

Click here to log in


What is the number after 87?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 10-17-2009, 04:44 PM
  2. Replies: 1
    Last Post: 08-12-2009, 02:34 AM
  3. Replies: 1
    Last Post: 06-30-2009, 10:20 PM
  4. Replies: 1
    Last Post: 06-12-2009, 12:05 PM
  5. Replies: 2
    Last Post: 05-31-2009, 12:38 PM

Bookmarks

Posting Permissions

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