Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Putting contents of array in notepad

Status
Not open for further replies.

sumncguy

IS-IT--Management
May 22, 2006
118
US

qx("notepad @tar");

Tried this doenst work. App starts but doesnt know the path.

Can anyone tell me how this is done. I searched all 4 of my books and the FAQ's .. prolly missing it.

Tks
 
What's in @tar?

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 

lines of text taken from a ascii text file. tar was just something to hit quickly on the keyboard. Not very spontaneously creative about my var and array names :)

most x, y, z's .. alpha bravo charlie -- house car boat etc etc.

tks
 
When you do notepad stuff, the stuff is the path. If you have some rubbish lines in there from a text file, most of the time it won't find the path.

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
1. Create filehandle (write)

2. Print array to the filehandle.

3. Close filehandle.

4. Open notepad using "system function", passing filename as argument.




dmazzini
GSM/UMTS System and Telecomm Consultant

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top