Everything2
Near Matches
Ignore Exact
Full Text
Everything2

-e

created by Eevee

(thing) by Eevee (2.2 y) (print)   ?   (I like it!) Sun Aug 11 2002 at 4:44:49

Perl's pre-unary does-this-file-exist operator. It takes either a filename or a filehandle as its argument, although checking if an open file exists is a bit silly. If the argument is omitted, it will use $_ instead. Returns 1 if the file exists and the undefined value if it does not. -d and -s are probably the most useful file test operators to combine with -e.

-e is also a command-line switch for perl.exe, completely unrelated to the above use. Turning it on causes Perl to execute whatever comes next as if it were a script instead of using it as a filename. Quotes are required if your script has any spaces in it.

Reference: Programming Perl and fiddling with ActivePerl


printable version
chaos

Perl E2 HTML lc shell
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Little presents from the Node Fairy:
George Washington's Inaugural Addresses
A stitch in time saves nine
weird radio, deserts, ghost towns, diesel moons
Suetonius
Yellow Mountain
Your piercing intelligence would undo or invigorate me
Whig History
Lucy Stone League
Charles I
House of Leaves
People shouldn't swallow rocks
December 20, 2005
The Perfect Puppy
New Writeups
antigravpussy
One fly amongst many(person)
sam512
Moon Base Shackleton, 1978(fiction)
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
SwimmingMonkey
Conversations with Fo Fo, the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
This affordable entertainment brought to you by The Everything Development Company