Login
Search
Welcome to the iTechForums.
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. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 1
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2008, 01:33 AM
wetwilly543 wetwilly543 is offline
Junior Member
 
Join Date: May 2008
Posts: 3
Default

Perl FILEHANDLE Question?


I am trying to open a file in a perl program using the filehandles. I have the filepath/name stored in a string. I tried to open it like this: open(FILEHANDLE, $string) . It is not recognizing the string's value as a filepath. Does anyone know how to open a file whose filepath is stored in a string?
It is in a Unix environment. The file definitely exists because I can open the file via the filehandle by hard-coding the filename/path into the open method. I also made sure that the correct filename/path is stored in the string as well. What is happening is that it is saying the file that I am sending it doesn't exist.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl ....how to write it correctly with Perl ?!? viki k Perl 0 05-06-2008 04:40 PM

Your Ad Here

All times are GMT. The time now is 10:25 AM.