in reply to use statement in a conditional?

Check out if (the module, not the flow control statement).

Replies are listed 'Best First'.
Re^2: use statement in a conditional?
by mangetsu (Novice) on Aug 18, 2006 at 17:06 UTC
    It worked! Thanks for your help ^_^
      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); }