473,479 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

1 New Member
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...connected. >Program terminated."

Thanks

Expand|Select|Wrap|Line Numbers
  1.  
  2. #! /usr/bin/perl -w
  3.  
  4. $proteinfilename = 'NM_0219664fragment.pep';.
  5. open (PROTEINFILE, $proteinfilename);
  6. $protein = <PROTEINFILE>;
  7. close PROTEINFILE;
  8. print "Here is the protein:\n\n";
  9. print $protein;
  10. exit;
Apr 1 '08 #1
1 1885
numberwhun
3,509 Recognized Expert Moderator Specialist
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...connected. >Program terminated."

Thanks

Expand|Select|Wrap|Line Numbers
  1.  
  2. #! /usr/bin/perl -w
  3.  
  4. $proteinfilename = 'NM_0219664fragment.pep';.
  5. open (PROTEINFILE, $proteinfilename);
  6. $protein = <PROTEINFILE>;
  7. close PROTEINFILE;
  8. print "Here is the protein:\n\n";
  9. print $protein;
  10. exit;

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
Apr 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
6069
by: Jofio | last post by:
Hello, I am a newbie in PHP and I am enthusiastically trying out things. I've just replaced my index.html ( file with index.php
31
3865
by: John Roth | last post by:
I'm adding a thread for comments on Gerrit Holl's pre-pep, which can be found here: http://tinyurl.com/2578q Frankly, I like the idea. It's about time that all of the file and directory stuff...
14
2544
by: Xah Lee | last post by:
Just bumped into another irresponsibility in perl. the crime in question this time is the module File::Basename. Reproduction: 1. create a directory containing a file of this name:...
15
2067
by: Xah Lee | last post by:
# -*- coding: utf-8 -*- # Python suppose you want to walk into a directory, say, to apply a string replacement to all html files. The os.path.walk() rises for the occasion. © import os ©...
3
12361
by: Xah Lee | last post by:
Split File Fullpath Into Parts Xah Lee, 20051016 Often, we are given a file fullpath and we need to split it into the directory name and file name. The file name is often split into a core...
0
2246
by: Xah Lee | last post by:
One-Liner Loop in Functional Style Xah Lee, 200510 Today we show a example of a loop done as a one-liner of Functional Programing style. Suppose you have a list of file full paths of...
0
2637
by: Ofelia | last post by:
Hi, I'm new to this forum and to Perl language but I would like to ask for your help. I'm working in Linux and the files I need to process are in the format “file.gz”. I created a script which...
24
3198
by: Peter Michaux | last post by:
I have a Perl script that I want to run as a set-user-ID program. Many OSes don't allow scripts run as set-user-ID. To make this script portable, it seems I need to write a C wrapper program that...
8
6356
viktorijakup
by: viktorijakup | last post by:
Hi !!! This script must open folder, and I must view empty opened folder...!!! I work in "Far manager". Now this script only create folder... @rem = '--*-Perl-*--
0
7027
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7019
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7067
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4757
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4463
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.