Open Perl IDE How to specify path to the file to open in perl

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hamidashrafi
    New Member
    • Apr 2008
    • 1

    #1

    Open Perl IDE How to specify path to the file to open in perl

    Hi,

    I just joined to the world of Perl.

    I am using the Open Perl IDE. in the following script do you know how I can set the path so, the program understand from where is should open the file. When I ran it I got the following message in console. "Entering open perl debugger, connecting to port 1378...connecte d. >Program terminated."

    Thanks

    [CODE=perl]

    #! /usr/bin/perl -w

    $proteinfilenam e = 'NM_0219664frag ment.pep';.
    open (PROTEINFILE, $proteinfilenam e);
    $protein = <PROTEINFILE> ;
    close PROTEINFILE;
    print "Here is the protein:\n\n";
    print $protein;
    exit;[/CODE]
    Last edited by eWish; Apr 2 '08, 08:03 PM. Reason: Please use code tags
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Originally posted by hamidashrafi
    Hi,

    I just joined to the world of Perl.

    I am using the Open Perl IDE. in the following script do you know how I can set the path so, the program understand from where is should open the file. When I ran it I got the following message in console. "Entering open perl debugger, connecting to port 1378...connecte d. >Program terminated."

    Thanks

    [CODE=perl]

    #! /usr/bin/perl -w

    $proteinfilenam e = 'NM_0219664frag ment.pep';.
    open (PROTEINFILE, $proteinfilenam e);
    $protein = <PROTEINFILE> ;
    close PROTEINFILE;
    print "Here is the protein:\n\n";
    print $protein;
    exit;[/CODE]

    Sorry, I don't know the answer but hopefully one of our experts will be able to assist you.

    My appologies for the delay in getting an answer to your question.

    Regards,

    Jeff

    Comment

    Working...