in reply to Re: How do read the varibles from a files and do some calculation
in thread How do read the varibles from a files and do some calculation
If he wants a more flexible number format than \d+, one of the perlfaqs gives a regexp that matches what Perl considers a number.
Your code handles A|system("rm -rf /") quite interestingly. If you call that a feature (plausible), then A|$B||$C is buggy. Using split(/\|/, $_, 2) instead of the current split solves it.
Your code also handles A = system("rm -rf /")|0 quite interestingly, and I can't see that being called a feature.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do read the varibles from a files and do some calculation
by revdiablo (Prior) on Oct 22, 2004 at 18:02 UTC |