Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sacgirl

    check if directory exists

    yes, finally, this works..thanks! I'll read up on the Path module..not too familiar with it.
  2. sacgirl

    check if directory exists

    $dir = 'c:/mike/tmp oops space/'; unless(-d $dir){ mkdir $dir or die "Couldn't create dir: [$dir] ($!)"; } I ran above script..and got this error msg. C:\PerlScripts>test.pl Couldn't create dir: [c:/mike/ \PerlScripts\test.pl line 4. I followed kodaff's code to replace the spaces...
  3. sacgirl

    check if directory exists

    I tried Mike's code..the problem arise when I need to create a folder with space in the folder name $dir = 'c:/mike/tmp oops space/'; unless(-d $dir){ mkdir $dir or die; } This will die.
  4. sacgirl

    check if directory exists

    $path = "folder1\folder2\folder3"; if (system($createdir)) { print "mkdir failed\n"; }; I want to check if this directory exists before creating it. $cpath is a relative path. I want to create it only if it doesn't exist. I'm using Windows..can anyone help me? I tried -d and -e, it doesn't...
  5. sacgirl

    perl newbie..please help!

    unbelievable..2 lines of code...actually it's just one line coz I don't even need to print it out... great job u guys!!
  6. sacgirl

    perl newbie..please help!

    Awesome..this works great!! So incredible sometimes to see how just 3 lines of codes in perl can do so much...I've heard great things about perl..but never really used it much at work, should kick myself for not learning.. Thank you so much aabiir!!
  7. sacgirl

    perl newbie..please help!

    I want to form a path name so that I know where to save the file. For example, this is taken from a sample XML file. I want to take the words between each pair of single quotes, and concatenate and form a path. So the output should be firstlevel\secondlevel\thirdlevel\filename Can someone...

Part and Inventory Search

Back
Top