Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Filesys::CygwinPaths 0.04

    Download button

    No screenshots available
    Downloads: 325  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Soren Andersen | More programs
    Perl Artistic License / FREE
    January 13th, 2009, 16:17 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Filesys::CygwinPaths description

    Perl module to get various conversions of path specifications in the Cygwin port of Perl.

    Filesys::CygwinPaths is a Perl extension to get various conversions of path specifications in the Cygwin port of Perl.

    SYNOPSIS

     use Filesys::CygwinPaths;
     PATHS_mode('cyg_win32');
     my $HOME = $ENV{'HOME'};

     my @pics_to_ogle = glob("$HOME/mypics/*.jpg");
     foreach my $pic (@pics_to_ogle) {
     system('C:/Applications/IrfanView/iview32',
     vetted_path($pic), '/bf /pos=(0,0) /one', "/title=$pic")
     or die "No fun today!";
     }
     system('C:/Applications/IrfanView/iview32', '/killmesoftly');

     OR

     use Filesys::CygwinPaths ':all';
     my $windows_groks_this = fullwin32path("$ENV{HOME}");
     my $posix_style = fullposixpath($ENV{'USERPROFILE'});

     if(posixpath($windows_groks_this) ne $posix_style)
     {
     print "You don't keep your bash HOME in your NT Profile dir, huh?
    ";
     }


    Filesys::CygwinPaths is a Cygwin-specific module created to ease the author's occasional pique over the little quirks that come up with using Perl on Cygwin, the free POSIX emulation psuedoplatform for Microsoft Windows(tm). The subroutines it exports allow various kinds of path conversions to be made in a fairly concise, simple, procedural manner. At the present time the module does not have an OO interface but one might be added in the future. The module can be used according to two diffent approaches, which are outlined below.

    Note: Hopefully it is obvious that the module can be neither built nor used on any platform besides Perl for Cygwin, and there would be no reason to want to do so.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    conversion path | Perl Cygwin | Perl module | Perl | Cygwin | conversion

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM