Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: .CHR file read

by johngg (Canon)
on Dec 08, 2011 at 23:04 UTC ( [id://942517]=note: print w/replies, xml ) Need Help??


in reply to Re: .CHR file read
in thread File Reading (.CHR file)

The path should probably be /cygdrive/c/cygwin/home/Administrator/test.chr if the OP's Cygwin installation is anything like mine.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^3: .CHR file read
by keszler (Priest) on Dec 09, 2011 at 00:44 UTC

    Now that I'm home, with a box that runs cygwin:
    Windows cmd shell

    C:\cygwin\home\Keszler>dir Directory of C:\cygwin\home\Keszler 12/08/2011 07:33 PM 12 test.chr 12/08/2011 07:35 PM <DIR> x C:\cygwin\home\Keszler>cd x C:\cygwin\home\Keszler\x>dir Directory of C:\cygwin\home\Keszler\x 12/08/2011 07:35 PM 155 test.pl C:\cygwin\home\Keszler\x>type test.pl #!/usr/bin/perl use strict; use POSIX; use warnings; open (NEWFILE, "/home/Keszler/test.chr"); print "Start"; while(<NEWFILE>) { print $_; } print "end"; C:\cygwin\home\Keszler\x>test.pl readline() on closed filehandle NEWFILE at C:\cygwin\home\Keszler\x\te +st.pl line 7. Startend C:\cygwin\home\Keszler\x>
    cygwin shell
    $ pwd /home/Keszler/x $ ls -l total 1 -rwxr-xr-x 1 Keszler None 155 Dec 8 19:35 test.pl $ ls -l .. total 1 -rw-r--r-- 1 Keszler None 12 Dec 8 19:33 test.chr drwxr-xr-x+ 1 Keszler None 0 Dec 8 19:35 x $ cat test.pl #!/usr/bin/perl use strict; use POSIX; use warnings; open (NEWFILE, "/home/Keszler/test.chr"); print "Start"; while(<NEWFILE>) { print $_; } print "end"; $ ./test.pl Start1,2,3 a,b,c end $

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://942517]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found