Re: Ascii-Art Secrets #1
From Philip Newton <pne...@newton.digitalspace.net>
· alt.ascii-art
· 3 Nov 2001 08:18 · View full thread
· report
On Mon, 29 Oct 2001 17:12:52 +0200, Groot Bees <The...@MovieExtra.com> wrote: > @cygL = zbl!f //, $l!u6; > > toL6gcy (@cygL) { > > !t ($_ =~ w/a/){$_ = "g";} > 6lz!t ($_ =~ w/b/){$_ = "p";} > 6lz!t ($_ =~ w/d/){$_ = "q";} > 6lz!t ($_ =~ w/6/){$_ = "6";} [etc. etc.] I think you should read up on the 'tr' operator in `perldoc perlop`. Then it's as simple as while(<IN>) { tr[abcde...xyz] [98765...321]; # replace this by the real mapping print; print OUT $_; } And it'll also be faster. Cheers, Philip -- Philip Newton <nos...@gmx.li> That really is my address; no need to remove anything to reply. If you're not part of the solution, you're part of the precipitate.
Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,22314b162d15df49 X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2001-11-03 00:17:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!dialup002.picon.DE!not-for-mail From: Philip Newton <pne...@newton.digitalspace.net> Newsgroups: alt.ascii-art Subject: Re: Ascii-Art Secrets #1 Date: Sat, 03 Nov 2001 09:18:56 +0100 Organization: very little Lines: 33 Message-ID: <ji5...@4ax.com> References: <GaC...@shieldwolf.demon.co.uk> <3bd...@news1.mweb.co.za> Reply-To: "Philip 'Yes, that's my address' Newton" <nos...@gmx.li> NNTP-Posting-Host: dialup002.picon.de (62.214.2.2) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1004775418 34501501 62.214.2.2 (16 [11583]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com alt.ascii-art:9495
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 2001 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.