| memowe | christof: that was for you |
| christof | okok I try :) thx |
| memowe | but i'm not sure if i understood your problem... |
| anabain_ | are \< and \> metasequences for beginning and final alphanumeric strings in Perl? |
| memowe | um... Ichbuch:~ memowe$ perl -le 'print \<foo\>' Unterminated <> operator at -e line 1. Ichbuch:~ memowe$ perl -le 'print \\<foo\\>' REF(0x18006f4) |
| anabain_ | memowe, they aren't, aren't they? |
| memowe | i think so |
| anabain_ | and do you know which are they in Perl, if any? |
| memowe | but you can do: Ichbuch:~ memowe$ perl -le 'print q <foo>' foo you're looking for string delimiters? |
| anabain_ | yes |
| memowe | well... there are " and ' " is with variable interpolation, ' isn't. and there are q and qq operators. and HERE-docs |
| j2daosh | if ($line ne m/@problems/){ how can i make this line work? |
| memowe | what should it do? |
| j2daosh | inside a foreach(), i'm taking lines from a file and trying to match against any instance in my @problems. if it matches do nothing... if it doesn't print the line to an output file it doesn't seem to be matching though... i have several duplicates in my output file |
| anabain_ | memowe, actually I want to match roman numerals by putting some alphanumeric string delimiters (beginning and end) at the beginning and end of this: [IVXLCDM] |
| memowe | anabain_: oh, ok. |
| anabain_ | the input are plain txt files |
| j2daosh | with my if() from eariler... am i saying "if $line doesn't equal everything n the array"? or am i saying "match $line to any line in @problems, if if doesn't match do something"? |
| anabain_ | memowe, then what should I use? |
| memowe | j2daosh: i think, you're looking for grep or List::Util::first, if there's already an array of lines. |
| pasteling | Someone at 85.197.228.236 pasted "typedef struct regexp_engine {" (19 lines, 887B) at http://sial.org/pbot/24398 |
| j2daosh | i believe i might have to use grep...ok thanks for the clarification |
| memowe | anabain_: to extract your numerals from a string? |
| j2daosh | small question... how can i use a grep in an if statement (IE- if grep doesn't find $line in any line of @problems, do something) if (grep { } @problems { ... };? missed the ")" |