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

/ operator question

by dicty (Sexton)
on Dec 14, 2012 at 04:38 UTC ( [id://1008770]=perlquestion: print w/replies, xml ) Need Help??

dicty has asked for the wisdom of the Perl Monks concerning the following question:

In the perl code,

die(...) if -e '/noexit';

What does '/noexit' or "/" operator mean here?

Thanks,

Dicty

Replies are listed 'Best First'.
Re: / operator question
by choroba (Cardinal) on Dec 14, 2012 at 05:50 UTC
    Inside the single quotes, there are no operators. The / stands for itself, it is a common directory separator, so it perhaps means "Die if the file noexit exists in the topmost directory". See -X.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: / operator question
by Anonymous Monk on Dec 14, 2012 at 07:27 UTC
    perlintro explains how to recognize strings and operators
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

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

    No recent polls found