in reply to How to extract special charachetrs like <=, >= != from string
I do suggest you read up on Regular Expressions as it will help you out tremendously on your journey :)use strict; use warnings; while (<DATA>) { print "$1\n" if $_ =~ /(!=|<=|>=|==)/; } __DATA__ $this <= $that $this lt $that $this >= $that $this gt $that $this != $that $this ne $that $this == $that $this eq $that
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to extract special charachetrs like <=, >= != from string
by vinoth.ree (Monsignor) on Aug 14, 2015 at 05:49 UTC | |
by Anonymous Monk on Aug 14, 2015 at 08:13 UTC | |
by james28909 (Deacon) on Aug 14, 2015 at 05:52 UTC | |
by choroba (Cardinal) on Aug 14, 2015 at 05:58 UTC | |
by soonix (Chancellor) on Aug 14, 2015 at 06:44 UTC | |
by vinoth.ree (Monsignor) on Aug 14, 2015 at 06:30 UTC | |
by james28909 (Deacon) on Aug 14, 2015 at 06:45 UTC | |
by soonix (Chancellor) on Aug 14, 2015 at 07:18 UTC |