diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:41 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:41 +0200 |
| commit | 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 (patch) | |
| tree | 631c295a4a4a16b57502b847626763a279bf6df7 /ychat-0.7.8/scripts/modules | |
| parent | 13aaf70af703748fe096e0664c305cd202637ad2 (diff) | |
tagging tags
Diffstat (limited to 'ychat-0.7.8/scripts/modules')
| -rw-r--r-- | ychat-0.7.8/scripts/modules/CVS/Entries | 2 | ||||
| -rw-r--r-- | ychat-0.7.8/scripts/modules/CVS/Repository | 1 | ||||
| -rw-r--r-- | ychat-0.7.8/scripts/modules/CVS/Root | 1 | ||||
| -rwxr-xr-x | ychat-0.7.8/scripts/modules/file.pm | 28 |
4 files changed, 32 insertions, 0 deletions
diff --git a/ychat-0.7.8/scripts/modules/CVS/Entries b/ychat-0.7.8/scripts/modules/CVS/Entries new file mode 100644 index 0000000..1490d42 --- /dev/null +++ b/ychat-0.7.8/scripts/modules/CVS/Entries @@ -0,0 +1,2 @@ +/file.pm/1.3/Tue Sep 7 17:00:25 2004// +D diff --git a/ychat-0.7.8/scripts/modules/CVS/Repository b/ychat-0.7.8/scripts/modules/CVS/Repository new file mode 100644 index 0000000..ac40d52 --- /dev/null +++ b/ychat-0.7.8/scripts/modules/CVS/Repository @@ -0,0 +1 @@ +ychat/scripts/modules diff --git a/ychat-0.7.8/scripts/modules/CVS/Root b/ychat-0.7.8/scripts/modules/CVS/Root new file mode 100644 index 0000000..745de68 --- /dev/null +++ b/ychat-0.7.8/scripts/modules/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@buetow.org:/usr/home/cvs/cvsroot diff --git a/ychat-0.7.8/scripts/modules/file.pm b/ychat-0.7.8/scripts/modules/file.pm new file mode 100755 index 0000000..b11e2b3 --- /dev/null +++ b/ychat-0.7.8/scripts/modules/file.pm @@ -0,0 +1,28 @@ +sub dopen +{ + my $shift = shift; + opendir DIR, $shift or die "$shift: $!\n"; + my @dir = readdir(DIR); + closedir DIR; + return @dir; +} + +sub fopen +{ + my $shift = shift; + open FILE, $shift or die "$shift: $!\n"; + my @file = <FILE>; + close FILE; + return @file; +} + +sub fwrite +{ + my $shift = shift; + my @file = @_; + open FILE, ">$shift" or die "$shift: $!\n"; + print FILE @file; + close FILE; +} + +1; |
