Loading ...
Sorry, an error occurred while loading the content.
 

Re: [PBML] what is "-d"

Expand Messages
  • Octavian Rasnita
    -d checks if the following expression or string is a directory. Teddy s Center: http://teddy.fcc.ro/ Mail: orasnita@home.ro ... From: Maisha Walker
    Message 1 of 2 , Sep 29, 2002
      -d checks if the following expression or string is a directory.

      Teddy's Center: http://teddy.fcc.ro/
      Mail: orasnita@...

      ----- Original Message -----
      From: "Maisha Walker" <maisha@...>
      To: <perl-beginner@yahoogroups.com>
      Sent: Monday, September 30, 2002 1:15 AM
      Subject: [PBML] what is "-d"


      Hello

      I hope everyone's had a nice weekend.

      I was looking through a perl program and found this line inside a
      subroutine:

      return unless (-d '/usr/local/www/docs/INSERTURL.com/tpl'); #don't send
      mail locally


      the INSERTURL is where the actual URL is.

      Can anyone explain what this does? It seems like perhaps it stops the
      subroutine unless something is true, but I don't understand the "-d".

      thanks!
      maisha





      Unsubscribing info is here:
      http://help.yahoo.com/help/us/groups/groups-32.html

      Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    Your message has been successfully submitted and would be delivered to recipients shortly.