9 Einträge, 1 Seite |
QuoteNatürlich könnte ich alle Steuerzeichen durch den Substitutionsoperator austauschen lassen, aber das wird doch auch einfacher gehen?
1
2
3
use String::Interpolate qw( interpolate );
my $test = '\ntest1\ttest2\ntest3\n';
print interpolate $test;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
F:\ams\sentinel>ppm
PPM - Programmer's Package Manager version 3.2.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a division of Sophos.
Entering interactive shell. Using Term::ReadLine::Perl as readline library.
Type 'help' to get started.
ppm> search String::Interpolate
Searching in Active Repositories
could not find ParserDetails.ini in F:/Perl/site/lib/XML/SAX
1. String-Interpolate [0.1] Wrapper for builtin the Perl interpolatation eng~
2. String-Interpolate [0.1] (none)
ppm> install 1
Package 1:
====================
Install 'String-Interpolate' version 0.1 in ActivePerl 5.8.0.805.
====================
Downloaded 13344 bytes.
Extracting 5/5: blib/arch/auto/String/Interpolate/.exists
could not find ParserDetails.ini in F:/Perl/site/lib/XML/SAX
Installing F:\Perl\html\site\lib\String\Interpolate.html
Installing F:\Perl\site\lib\String\Interpolate.pm
Successfully installed String-Interpolate version 0.1 in ActivePerl 5.8.0.805.
1
2
3
4
5
6
7
8
9
10
<REPOSITORY LOCATION="http://theoryx5.uwinnipeg.ca/ppms" NAME="theory58S" SUMMARYFILE="" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://jenda.krynicky.cz/perl" NAME="jenda" SUMMARYFILE="" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://www.perlxml.net/PPM" NAME="perlxml" SUMMARYFILE="" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://crazyinsomniac.perlmonk.org/perl/ppm/5.8" NAME="crazy58" SUMMARYFILE="" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58" NAME="theory58" SUMMARYFILE="" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://datetime.perl.org/download" NAME="datetime" SUMMARYFILE="" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://savage.net.au/Perl-modules/ppm" NAME="savage" SUMMARYFILE="" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://ppm.gingerall.cz" NAME="sablot" SUMMARYFILE="" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://ppm.ActiveState.com/cgibin/PPM/ppmserver-5.8-windows.pl?urn:/PPMServer" NAME="ActiveState Package Repository" SUMMARYFILE="fetch_summary" USERNAME="" PASSWORD="" />
<REPOSITORY LOCATION="http://openinteract.sourceforge.net/ppmpackages" NAME="openi" SUMMARYFILE="" USERNAME="" PASSWORD="" />
ppm rep add "name-of-rep" url-to-rep
1
2
3
my $test = '\ntest1\ttest2\ntest3\n';
eval '$test = "' . $test . '"';
print $test, "\n";
9 Einträge, 1 Seite |