Du suchst ein Programm für einen bestimmten Zweck?
-
Duff
- Beiträge: 6321
- Registriert: 22.03.2005 14:36:03
- Wohnort: /home/duff
Beitrag
von Duff » 24.07.2008 10:29:12
Hallo,
ich habe mir folgendes Packet herunter geladen:
Code: Alles auswählen
Package: libfile-path-expand-perl
Priority: optional
Section: perl
Installed-Size: 20
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Architecture: all
Version: 1.02-1
Depends: perl (>= 5.6.0-16)
Filename: pool/main/libf/libfile-path-expand-perl/libfile-path-expand-perl_1.02-1_all.deb
Size: 5052
MD5sum: 2150873a294b0c39a4a287c5d72bf65b
SHA1: d5b8cc123abe0e63fd41411c2f108bc3a0990a61
SHA256: eae5857b187cde5b71dee7d1bc6d1cdbda39bbb232cdb858a9d9a13c75d7e149
Description: expand user directories in filenames
File::Path::Expand expands user directories in filenames. For the
simple case it's no more complex than s{^~/}{$HOME/}, but for other
cases it consults getpwent and does the right thing.
Tag: devel::lang:perl, implemented-in::perl, role::shared-lib
Wie kann ich dieses nun nutzen bzw. wie kann ich mir Anzeigen lassen, was an Input benötigt wird?
Danke.
Oh, yeah!
-
Danielx
- Beiträge: 6419
- Registriert: 14.08.2003 17:52:23
Beitrag
von Danielx » 24.07.2008 12:06:10
Duff hat geschrieben:Wie kann ich dieses nun nutzen bzw. wie kann ich mir Anzeigen lassen, was an Input benötigt wird?
Ähm, verstehe dich nicht, was ist das genaue Problem?
Hast du das Paket schon installiert?
Wenn ja, dann schaue dir die Man-Page an:
Gruß,
Daniel
-
Duff
- Beiträge: 6321
- Registriert: 22.03.2005 14:36:03
- Wohnort: /home/duff
Beitrag
von Duff » 24.07.2008 12:12:09
Sorry, mir geht es um das getpwent
File::Path::Expand expands user directories in filenames. For the simple case it’s no more complex than s{^~/}{$HOME/}, but for other cases it consults "getpwent" and does the right thing.
Woher weiß ich jetzt, wie ich es aufrufen muss?
Oder ist dies gar nicht in dem Package enthalten.
Oh, yeah!
-
Danielx
- Beiträge: 6419
- Registriert: 14.08.2003 17:52:23
Beitrag
von Danielx » 24.07.2008 12:44:03
Wie gesagt, in der Man-Page nachlesen:
NAME
File::Path::Expand - expand filenames
SYNOPSIS
use File::Path::Expand;
print expand_filename("~richardc/foo"); # prints "/home/richardc/foo"
DESCRIPTION
File::Path::Expand expands user directories in filenames. For the simple case it’s no more complex than s{^~/}{$HOME/}, but
for other cases it consults "getpwent" and does the right thing.
Das benutzt nur, falls nötig, getpwent.
Gruß,
Daniel
-
nepos
- Beiträge: 5238
- Registriert: 05.01.2005 10:08:12
Beitrag
von nepos » 24.07.2008 16:17:25
Alternativ kann man die Perl-Dokumentation von Modulen auch mittels
ansehen.