#perl - Sun 22 Apr 2007 between 10:30 and 10:53



memowechristof: that was for you
christofokok I try :) thx
memowebut i'm not sure if i understood your problem...
anabain_are \< and \> metasequences for beginning and final alphanumeric strings in Perl?
memoweum...
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?
memowei think so
anabain_and do you know which are they in Perl, if any?
memowebut you can do:
Ichbuch:~ memowe$ perl -le 'print q <foo>'
foo
you're looking for string delimiters?
anabain_yes
memowewell...
there are " and '
" is with variable interpolation, ' isn't.
and there are q and qq operators.
and HERE-docs
j2daoshif ($line ne m/@problems/){
how can i make this line work?
memowewhat should it do?
j2daoshinside 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]
memoweanabain_: oh, ok.
anabain_the input are plain txt files
j2daoshwith 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?
memowej2daosh: i think, you're looking for grep or List::Util::first, if there's already an array of lines.
pastelingSomeone at 85.197.228.236 pasted "typedef struct regexp_engine {" (19 lines, 887B) at http://sial.org/pbot/24398
j2daoshi believe i might have to use grep...ok
thanks for the clarification
memoweanabain_: to extract your numerals from a string?
j2daoshsmall 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 ")"

Page: 4 11 18 25 32 39 46 53 60 67 

IrcArchive