SPUG: Yet another silly question

Susanne Bullo sweetsue at sweethomes.com
Sat Jan 19 17:01:55 CST 2002


That did the trick right there - how very simple!  Thank you!

Susanne Bullo - Sweet Homes

-----Original Message-----
From: Brian Van Horne [mailto:bvh at speakeasy.net]
Sent: Saturday, January 19, 2002 2:37 PM
To: Susanne Bullo
Cc: Seattle Perl User's Group
Subject: Re: SPUG: Yet another silly question


This should do it:

  # create dir if it doesn't already exist
  
  my $directory = '/absolute/path/to/dir/';
  mkdir($directory) unless -d $directory;

Brian

-- 
"The mind is not a vessel to be filled but a fire to 
be kindled."                              - Plutarch


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/





More information about the spug-list mailing list