Re: Style ( was:Capture a printing function into an array )

2003-06-17 Thread Tassilo von Parseval
On Mon, Jun 16, 2003 at 11:39:30PM -0700 Harry Putnam wrote: > "Charles K. Clarkson" <[EMAIL PROTECTED]> writes: > > > > > $$line =~ s/[Ss]ource/Src/g; > > $$line =~ s/[Dd]estination/Dst/g; > > $$line =~ /^[^ ]+, (\d[^ ]+ \d[^ ]+).*(Src[^ ]+ \d+).*(Dst[^ ]+ > > Where do I

Re: Style ( was:Capture a printing function into an array )

2003-06-16 Thread Harry Putnam
"Charles K. Clarkson" <[EMAIL PROTECTED]> writes: > > $$line =~ s/[Ss]ource/Src/g; > $$line =~ s/[Dd]estination/Dst/g; > $$line =~ /^[^ ]+, (\d[^ ]+ \d[^ ]+).*(Src[^ ]+ \d+).*(Dst[^ ]+ Where do I look for the details on the meaning of the double `$'? -- To unsubscribe,

Re: Style ( was:Capture a printing function into an array )

2003-06-16 Thread Harry Putnam
"Charles K. Clarkson" <[EMAIL PROTECTED]> writes: > Sorry Harry. This reply doesn't answer your question. > But your subroutine raises some excellent reasons why a > better defined programming style can save keystrokes and > headaches later on. God knows I can use stylistic advice... thanks.

Style ( was:Capture a printing function into an array )

2003-06-16 Thread Charles K. Clarkson
Harry Putnam wrote: : : My script has a function that I want to just print its : output in some circumstances but in others I need to : capture its output into an array for further processing: : : sub strip_to_bone { :if(/[Ss]ource/ && /[Dd]estination/){ : ($line = $line) =~ s/[Ss]our