hello,
Good questions.
I'm trying to use cmd line perl -e to do some fairly basic sed-style
find/replace.
Why don't you just use sed for that, if you're not doing the main
program in Perl? Maybe I'm misunderstanding you, but it sounds like
you're saying that you're writing shell scripts in
hello folks,
I'm trying to use cmd line perl -e to do some fairly basic sed-style
find/replace. Was able to get first few things working but stumbled when I
wanted to do the following
- given an i/p (piped o/p from a previous perl -e cmd on DOS) of...
dtor_list.obj:
newnothrow.obj:
TRACECSV while $. = 4;
$. is not well-known to many Perl programmers.
TRACECSV for 1 .. 4;
thanks. Above solution is simple effective. I agree that I was
gratuitously using $. when your solution is far easier to document and
probably safer in my program since I have several
hello folks,
I'm parsing a file that's 1+ lines long. Since sometimes it can be 10x that
size I'm doing line by line parsing as opposed to array slurp.
The first 4 lines are gobbldygook and need to be skipped. Currently I'm doing...
while (my $line = TRACECSV) {
next unless ($.
hello folks,
anything I can find on this mail list googling shows only JPL references
3 years old. Is there any active work on making Java-Perl work together?
I ask because my company is moving from a COM based IDE to an Eclipse based
one. There are a large set of users with
ello folks,
...got a bit carried away with references deeply nested structures. Net
result is I have an array of the form: -
$ref- reference to nested array
[0] - nothing at this level to key/sort on
[0]
.
Thanks again for all the advice. Much appreciated. FYI the script now runs in
1sec on a 9Mb file, as compared to 3min 30s previously!
cheers, Alan
John W. Krahn [EMAIL PROTECTED] wrote:
Alan Campbell wrote:
hello folks,
Hello,
I'm slurping in a large file and seeing a nice speedup versus
hello folks,
I'm slurping in a large file and seeing a nice speedup versus line by line
processing...but I'm losing it in my (likely poorly constructed!)
reg-expression match
I do: -
#
# look for potentially problematic code of the following form: -
# STW b0, *SP--[3]
.
I'm open to using a module but pure reg exp (non line-by-line) seems
faster...and speed is important in this case due to filesize.
Grateful for any ideas u may have.
Cheers, Alan
Jay Savage [EMAIL PROTECTED] wrote:
On 4/29/06, Alan Campbell wrote:
hello folks,
I'm trying to do
hello folks,
I'm trying to do a 'medium' greediness regular expression. Here's what I
mean. I need to grab all of the DW_TAG_TI_reserved stuff and kill it (italics
below)
die id='0x157'
tagDW_TAG_TI_assign_register/tag
10 matches
Mail list logo