sslug-teknik team mailing list archive
-
sslug-teknik team
-
Mailing list archive
-
Message #79223
Re: Regex sp. -Igen igen :)
-
To:
sslug-teknik@xxxxxxxx
-
From:
Peter Makholm <peter@xxxxxxxxxxx>
-
Date:
Mon, 03 Jan 2005 11:33:45 +0100
-
Cancel-lock:
sha1:Ks1pSNBq+Tf9P/f8nHDhzp00Bz0=
-
Delivered-to:
mailing list sslug-teknik@xxxxxxxx
-
In-reply-to:
<crb5th$q5k$4@shrek.linuxnews.dk> (Jesper Krogh's message of "Mon, 3 Jan 2005 10:14:09 +0000 (UTC)")
-
Mailing-list:
contact sslug-teknik-help@xxxxxxxx; run by ezmlm
-
Newsgroups:
sslug.teknik
-
Organization:
hacking.dk - Doing fun stuff with open source
-
User-agent:
Gnus/5.09002 (Oort Gnus v0.20) XEmacs/21.4 (Security Through Obscurity, linux)
-
Xyzzy:
Nothing happens!
Jesper Krogh <jesper@xxxxxxxx> writes:
> Når.. :-) bare kør den igen på de andre linier.
>
> Jesper
>
> open FILE, testfil
> while(<FILE>){
> my $line = $_;
> $line = s/\./\t/;
> print $line;
>
> }
> close FILE;
>
Også kendt som:
perl -pe 's/./\t/' testfil
--
Peter Makholm | What if:
peter@xxxxxxxxxxx | Tanenbaum had convinced Linus that his
http://hacking.dk | operating system really was obsolete
Follow ups
References