Help for this page

Select Code to Download


  1. or download this
    chdir `perl -e 'print quotemeta("/some/path")'`
    
  2. or download this
    $ cat script.pl
    print("set var=val\n");
    ...
    print("cd /some/path\n");
    
    $ script.pl > temp_file && source temp_file && rm temp_file
    
  3. or download this
    >type script.pl
    print("set var=val\n");
    ...
    print("cd \\some\\path\n");
    
    >for /f "usebackq delims=" %%f in (`script.pl`) do %%f