azatoth has asked for the wisdom of the Perl Monks concerning the following question:
The code above does the following. If I enter#!/usr/bin/perl -w use strict; # variables my $eng; # main print "String : \n"; ($eng = <STDIN>); ($eng =~ s/u/a/i) if ($eng =~ /^.*u.*/g); print $eng;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Question : Substitution
by BooK (Curate) on Feb 02, 2001 at 15:56 UTC | |
by $code or die (Deacon) on Feb 02, 2001 at 17:14 UTC | |
by japhy (Canon) on Feb 02, 2001 at 22:42 UTC | |
by petral (Curate) on Feb 03, 2001 at 07:26 UTC | |
|
Re: Regex Question : Substitution
by mirod (Canon) on Feb 02, 2001 at 15:54 UTC | |
|
Re: Regex Question : Substitution
by ChOas (Curate) on Feb 02, 2001 at 15:53 UTC | |
|
Re: Regex Question : Substitution
by Beatnik (Parson) on Feb 02, 2001 at 18:27 UTC | |
|
Re: Regex Question : Substitution
by dsb (Chaplain) on Feb 02, 2001 at 20:23 UTC |