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
"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,
"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.
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