Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Stumped by regex

by JavaFan (Canon)
on Nov 10, 2008 at 11:43 UTC ( [id://722628]=note: print w/replies, xml ) Need Help??


in reply to Stumped by regex

Considering that $cc comes from %Config, it could technically contain anything. For instance, it may contain "/foo/bar/:[baz]". Now, while the latter is valid in most Unix file systems, it's highly unlikely to find a C compiler in such a path. Unlike VMS. A full path in VMS consists of a device name, a directory, a file name (including extension), and a version number. The device name and the directory are separated by a colon, while the directory itself is enclosed in square brackets. Which explains not only that $cc may match this, but also why this specific match was choosen.

Replies are listed 'Best First'.
Re^2: Stumped by regex
by syphilis (Archbishop) on Nov 10, 2008 at 21:25 UTC
    Thanks guys. Let's hope I don't ever have to get involved with VMS porting issues :-)

    Cheers,
    Rob
      VMS is actively supported by people on the p5p list. They might be willing to help you if you have a VMS concern.

      I personally believe that in case you do, then you will fully understand why modules like File::Spec exist, and how useful they are.

      --
      If you can't understand the incipit, then please check the IPB Campaign.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-23 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found