Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Check if unicode directory exists

by Anonymous Monk
on Aug 06, 2012 at 09:12 UTC ( #985635=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    use Fcntl q' :mode ';
    use Win32::Unicode::Native;
           = stat($filename);
    dd \@f, S_ISDIR( $mode ), S_ISREG($mode);
  2. or download this
    #!/usr/bin/perl --
    use strict; use warnings;
      bless([3, 0, 33206, 1, 0, 0, 3, 444, 1344244390, 1344244390, 1344244
    +307, "", ""], "File::stat"),
      { isdir => "", isfile => 1 },

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985635]
[marioroy]: bad gurus :)
[choroba]: also, &> redirects both at the same time
[marioroy]: erix are you using csh
Discipulus uh the link was for cmd.exe the bash one
[marioroy]: If yes, for redirection to work, one might do the following
[marioroy]: `bash -c "clang --version 2>/dev/null"`
[choroba]: Sane people don't use csh
[marioroy]: the 1>&2 will work, not shown
[marioroy]: sorry, did not know which if cmd.exe or unix (bash)
[choroba]: csh considered harmful

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-03-23 08:21 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (284 votes). Check out past polls.