IPstacks has asked for the wisdom of the Perl Monks concerning the following question:
The original value of $from is "--from me@mydomain.com \"open FILE, $filename || die $!; while (<FILE>) { #search for --from if (/--from/) { $from = $_; $from =~ s/^--from\t//g; $from =~ s/\t\\//g; $from =~ s/@//g; print $from; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing data from a string with Regex
by jwest (Friar) on Nov 15, 2001 at 02:14 UTC | |
by pike (Monk) on Nov 15, 2001 at 13:46 UTC | |
by CharlesClarkson (Curate) on Nov 15, 2001 at 23:01 UTC | |
|
Re: Removing data from a string with Regex
by c (Hermit) on Nov 15, 2001 at 02:16 UTC | |
|
Re: Removing data from a string with Regex
by jclovs (Sexton) on Nov 15, 2001 at 02:29 UTC | |
by s0ttle (Scribe) on Nov 15, 2001 at 02:52 UTC | |
|
Re: Removing data from a string with Regex
by scain (Curate) on Nov 15, 2001 at 02:13 UTC |