Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] documentation request for [error] tag



******    message to minivend-users from "Bill Randle" <billr@exgate.tek.com>     ******

Mark,

Duh! You're right, of course. When I looked at it again it was obvious.

	-Bill


On Mar 21,  5:54pm, Mark Stosberg wrote:
} Subject: Re: [mv] documentation request for [error] tag
} ******    message to minivend-users from Mark Stosberg <mark@summersault.com>
    ******
}
}
} Thanks for writing this Bill, it's very useful.
}
} Based on your pointer, I was able to find the source code myself. I
} believe you may have the function of the "required" option wrong, which
} is commonly seen in the code with the value of "1", as if it's a boolean
} option. Here's the line that's murky:
}
} $text =~ s/{REQUIRED\s+([^}]*)}/$opt->{required} ? $1 : ''/ge;
}
} Although this a nice compact perlism, It's not straightforward to
} understand. It appears to be saying "if the 'required' option is true,
} replace the REQUIRED place holder token with the real label, otherwise
} just remove the REQUIRED tokens.
}
}    -mark



-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: