Professional Web Applications Themes

Array question - PERL Beginners

Removed by Administrator...

  1. Moderated Post

    Default Array question

    Removed by Administrator
    Chris Guest
    Moderated Post

  2. Moderated Post

    Default Re: Array question

    Removed by Administrator
    Wolf Guest
    Moderated Post

  3. Moderated Post

    Default Re: Array question

    Removed by Administrator
    Tim Guest
    Moderated Post

  4. #4

    Default Re: Array question

    Chris wrote:
     

    Too complicated. Check Wolf's suggestion:
    $unwanted{$_} = 1 foreach exclude;
    my temp;
    push temp
    while (my $email = shift emails) {
    push temp, $email unless $unwanted{$email};
    }
    emails = temp;
    temp = undef;
     

    Your problem lies somewhere other than the code shown. There is nothing in the
    code above that perform internal manipulations on the data.

    Please go through your code, paraphrase in English [or your spoken language of
    daily use] what each line of code does, and post the code of lines likely to
    deal more directly with the content of the data.

    Overall, I see a conceptual problem here. What is it that you are trying to
    exclude the emails and patterns from? Do you just want to expunge them from the
    data store you extract, or do youwant to edit them out of the doentation? If
    it si only the former, then the code above should help to filter the specific
    stringsyou are trying to exclude. Patterns are a different matter, but lets
    take this one step at a time, and defer the pattern hunt until you are on solid
    ground with the exclusion code.

    I see little hope of prducing automated edits without trashing the
    doentation--at least without a much more clear specification. Briefly put,
    the editing of the text is a whole different issue that has not even been
    touched thus far on this thread.

    Joseph



    R. Guest

  5. #5

    Default Re: Array question

    "R. Joseph Newton" wrote:
     
    >
    > Too complicated. Check Wolf's suggestion:[/ref]

    Ooops, excuse the brain :
     

    Joseph

    R. Guest

Similar Threads

  1. Array question
    By Math55 in forum Coldfusion - Getting Started
    Replies: 35
    Last Post: December 20th, 01:20 AM
  2. Array question
    By Robin in forum PHP Development
    Replies: 6
    Last Post: February 12th, 09:43 PM
  3. array question help
    By duppdawg webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: January 22nd, 10:05 PM
  4. array question (grep -v on array)
    By NetComrade in forum PERL Miscellaneous
    Replies: 1
    Last Post: July 28th, 08:02 PM
  5. [PHP] ARRAY QUESTION
    By Chris W. Parker in forum PHP Development
    Replies: 0
    Last Post: July 24th, 07:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139