Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • In this:

        $root->findnodes(qq[
          //ATTRIBUTE[($NAME="$bckwrd_wf" or $NAME="$bckwrd_ses") and $VALUE="NO"]/$VALUE |
          //TASKINSTANCE[$FPDNR="NO"]/$FPDNR |
          //TASKINSTANCE[$FPIF="NO"]/$FPIF
        ])

    VS. this:

        $root->findnodes("
          //ATTRIBUTE[($NAME="$bckwrd_wf" or $NAME="$bckwrd_ses") and $VALUE="NO"]/$VALUE |
          //TASKINSTANCE[$FPDNR="NO"]/$FPDNR |
          //TASKINSTANCE[$FPIF="NO"]/$FPIF
        ")

    The variables look the same in Vim, but in the qq version, the and's and or's and "//" stand out better, and even the element names (e.g., "ATTRIBUTE") stand out better. All in all prettier. Only works with some qq delimiters, square brackets are ok, "-" is ok, but curly braces come out the same as using quotes. Similar behavior with q[]. If it's a bug I hope they don't fix it :-)