in reply to Re: use statement in a conditional?
in thread use statement in a conditional?

It worked! Thanks for your help ^_^

Replies are listed 'Best First'.
Re: use statement in a conditional?
by mangetsu (Novice) on Aug 18, 2006 at 17:13 UTC
    Uh just another quick question (in relation to the above) Is there a command to get the letter of the current drive? I've done it using getcwd and then matching the result against /.:/, but it seems like something for which there'd be a standard command. Thanks.
      The concept of "drive" is uncommon, so there's no standard command. There could be function in one of the Win32 modules, but I haven't found one. I can't even find a Win32 system call that gets the current drive (just one that returns the current directory, with drive).
      sub getcwdrv { return getcwd() =~ /^([a-zA-Z]:)/ && uc($1); }