| perline | Hello there how can I find and delete with regexp? |
| SubStack | eval: "bar foo baz bar bar rawr" =~ s/bar//g |
| buubot | SubStack: Error: Can't modify constant item in substitution (s///) at eval line 2, at EOF |
| SubStack | oh whoops eval: my $str = "bar foo baz bar bar rawr"; $str =~ s/bar//g |
| buubot | SubStack: 3 |
| SubStack | eval: my $str = "bar foo baz bar bar rawr"; $str =~ s/bar//g; $str |
| buubot | SubStack: foo baz rawr |
| SubStack | bleh, too late GumbyBRAIN: too late |
| GumbyBRAIN | but imo 0 is too late. |
| SubStack | 0 is too late |
| perline | yay thanks |
| action | somian pops a few off SubStack |
| somian | pops a few off SubStack |
| avar | GumbyBRAIN: returt 0 but Late; |
| GumbyBRAIN | The latter is possible, but we don't have to install digest::sha1 but get the value of $out is getting late. |
| SubStack | GumbyBRAIN: if a robot has been very bad, does it go to dependency hell? |
| GumbyBRAIN | It's not bad as a dependency? |
| perline | Heya :-) Now what am I screwing up on $outmail =~ s/((?i)an:)(\s*)(.*)//g; how does it have to look like right? |
| SubStack | ? |
| perline | I want to find "An: fddf\@dfdf" and just delete it and nothing more |
| cmonex | seeyou all and thnaks for the help |
| SubStack | perline: s/^An: .+\n$//m perldoc perlretut is a good read too |
| perline | Thank you... do you know how I can make it case insensitive? |
| action | CPAN upload: Language-Kemuri-0.02 by TOKUHIROM |
| CPAN | upload: Language-Kemuri-0.02 by TOKUHIROM |
| SubStack | /i |
| perline | klah will not appear my $outmail = "Blah An:fddf\@dfdf klah"; $outmail =~ s/((?i)an:)(\s*)(.*)(\s*)//; |
| digitok | What are you trying to do? |
| perline | I want to delete An: * from the string |
| digitok | eval: my $outmail = "Blah An:fddf\@dfdf klah"; print $outmail,' // '; $outmail =~ s/((?i)an:)(\s*)(.*)(\s*)//; print $outmail; |
| buubot | digitok: Blah An:fddf@dfdf klah // Blah 1 |
| digitok | That's what it does? |
| perline | digitok: Whats different? |
| digitok | In what? |
| Shorn | OutThere! =O |
| digitok | wtf is (?!) what's that gonna do |