Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: open and read text file

by sundialsvc4 (Abbot)
on Jul 22, 2017 at 02:12 UTC ( #1195757=note: print w/replies, xml ) Need Help??


in reply to Re^3: open and read text file
in thread open and read text file

Actually, since I happen to be running Linux in a VirtualBox VM on a Mac, it is easy for me to respond authoritatively to this.   There is no “guessing game.”   OS/X (Mach ...) behavior is identical to (any other ...) Unix is identical to Linux.

(“I just tried it ...”   Just to make very sure ...)

The OP made a fundamental but common mistake:   (s)he typo’d the path-name.   Therefore, the command interpreter referenced in the shebang-line doesn’t exist, and it is as simple as that.   The shell should would have caught this error.

Therefore, the OP’s description of the situation contains intrinsic flaws which must now await the OP’s further clarification.   Stay tuned.™   (The fundamental cause of the problem is obvious ... “bash somehow didn’t invoke Perl” ... but the particulars of the reported issue cannot be reproduced and indeed appear to be contradictory.)

Replies are listed 'Best First'.
Re^5: open and read text file
by jdporter (Canon) on Jul 22, 2017 at 03:34 UTC
    I happen to be running Linux in a VirtualBox VM on a Mac

    If you did it in Linux -- even in a VM on Mac -- you didn't do it "on a Mac", so you didn't test that hypothesis at all.

Re^5: open and read text file
by stevieb (Abbot) on Jul 22, 2017 at 02:36 UTC

    I was following along with you, but you went way offside here. A lot of squiggly lines and plain text butchery so it's hard to read.

    I can't agree that all *nix == Unix == *BSD etc, but I may be missing something. We already know the path name is incorrect, and I already stated more info from the OP is required, so I don't know if you're just repeating that, or implying I missed something beyond what I said in the post you're replying to, or my OP.

    It seems illogical for you to respond with what you did here unless you posted verbatim output from a test on a Mac with little else. It's in no way additive to what has already been discussed on this thread, nor does it add any benefit; it suits to confuse more than anything... again, unless I'm totally missing something.

    I responded in a very sane way, with logic. The only addition to my post would have been examples of tests that one would have run. That's it. Output to confirm.

Re^5: open and read text file
by Anonymous Monk on Jul 22, 2017 at 21:14 UTC
    OS/X (Mach ...) behavior is identical to (any other ...) Unix is identical to Linux.

    What?

    No. Please stop.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2019-07-20 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?