Re: help with matching

2005-11-11 Thread Jay Savage
On 11/11/05, Dr.Ruud <[EMAIL PROTECTED]> wrote: > Jay Savage: > > > $user = chomp($_); > > No, see `perldoc -f chomp`. > > chomp; > $user = $_; > good catch. Meant to write chomp($user = $_); Long day... -- j -- This email and attachme

Re: help with matching

2005-11-11 Thread Dr.Ruud
Jay Savage: > $user = chomp($_); No, see `perldoc -f chomp`. chomp; $user = $_; -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: help with matching

2005-11-09 Thread Rob.Savino
print "$user\n"; } } This is now working how I anticipated. Thanks all who replied. -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 2:05 PM To: Rob.Savino Cc: beginners@perl.org Subject: Re: help with matching Rob.S

Re: help with matching

2005-11-09 Thread Jay Savage
On 11/9/05, Ryan Frantz <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Rob.Savino [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 09, 2005 1:50 PM > > To: beginners@perl.org > > Subject: help with matching > > > > > > I'm working on a simple script to get a list of

Re: help with matching

2005-11-09 Thread Marilyn Sander
Hello, Rob. On Nov 9, 2005, at 10:49 AM, Rob.Savino wrote: I'm working on a simple script to get a list of users who do not exist while (<>) { At this point, $_ ends with "\n". $user = system("echo $_"); This statement will set $user to the returned value from system(), which wi

RE: help with matching

2005-11-09 Thread Ryan Frantz
> -Original Message- > From: Rob.Savino [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 09, 2005 1:50 PM > To: beginners@perl.org > Subject: help with matching > > > I'm working on a simple script to get a list of users who do not exist > > while (<>) { > $user = system("ec

Re: help with matching

2005-11-09 Thread Wiggins d'Anconia
Rob.Savino wrote: > I'm working on a simple script to get a list of users who do not exist > > while (<>) { > $user = system("echo $_"); > $result = system("dsquery user -samID $_"); > } > if (!$result) { > print "$user\n"; > } > > Here is my problem, > > dsquery user -samID sh

RE: Help With Matching

2001-05-11 Thread Peter Cornelius
$test1 = " the is a test"; $test1 = s/<>//g I'm not going to re-state all of the other valid comments to this problem but I would like to add... assuming you want all whitespace replaced with "" I think this should work. $test1 =~ s#\s+##g ^ ^^^ || ||-> \s

Re: Help With Matching

2001-05-11 Thread Casey West
On Fri, May 11, 2001 at 12:16:17PM -0400, FLAHERTY, JIM-CONT wrote: : I am trying to substite , I want to replace <> between the words and : replacing them with : because I am reading a file that is uploaded and making a table in a web : page when this script is run : : $test1 = " the is a

Re: Help With Matching

2001-05-11 Thread Peter Scott
At 12:16 PM 5/11/01 -0400, FLAHERTY, JIM-CONT wrote: >I am trying to substite , I want to replace <> between the words and >replacing them with >because I am reading a file that is uploaded and making a table in a web >page when this script is run > > >$test1 = " the is a test"; > >$test1 = s/

Re: Help With Matching

2001-05-11 Thread Jeff Pinyan
On May 11, FLAHERTY, JIM-CONT said: >$test1 = s/<>//g ^ This gives an error. s!<>!!g; -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ Are you a Monk? http://www.perlmonks.com/ http://forums.perlguru.com/ Perl Programmer at RiskMetrics Gr