Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: speno@swarthmore.edu (John P. Speno)
Subject: Re: Problem with a perl program , (Perl4.03)
Date: 1995/08/09	[thread overview]
Message-ID: <409ca2$237@gingko.cc.swarthmore.edu> (raw)
In-Reply-To: 407tau$rfe@sparcserver.lrz-muenchen.de

In <407tau$rfe@sparcserver.lrz-muenchen.de> Max Hadersbeck <max@cis.uni-muenchen.de> writes:

>	s/\/\/[^\@]*@/\n/g;   <<<<<<<<---------- this line produces a segmentation
>fault ??? Why

You need to escape the @ like this:

s//\/[^\@]*\@/\n/g;

or else perl thinks you are talking about some array variable.
-- 
John P. Speno, speno@swarthmore.edu, Swarthmore College Computing Center
	     "There is no wisdom greater than kindness."




      reply	other threads:[~1995-08-09  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-08  4:00 Problem with a perl program , (Perl4.03) Max Hadersbeck
1995-08-09  4:00 ` John P. Speno [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox