Re: [Perl-unix-users] a question for split function in perl

2004-12-01 Thread Brian Noble
On Wed Dec 01, 2004 at 01:16:19PM -0800, Ella Cai wrote: > Our codes is like this: > > $line = "fordGID=54097"; > ($match,$data)=split(/[=]/,$line); ($match,$data)=split(/[=:]/,$line); > > Right now, sometime $line = "fordGID:54097"; > > I would like to know can split function support regul

Re: [Perl-unix-users] regexp question: $1 result (HTML formatted color-coded mail)

2002-10-18 Thread Brian Noble
/target=\"_blank\">$1<\/A>/gi;} > > > I need that $1 (in red) in the visible part of URL would be max 40 characters, >while hyperlink actual path $1 be full length. Is there any way to make it. > > Ideas appreciated, > R

Re: [Perl-unix-users] a way to put contents of variable at command prompt and pip it to some other command

2002-10-09 Thread Brian Noble
> > now i want to pass the contents of "data" thru unix commands like egrep and > sort > > > so in all operation will be like > > ls -ltr | grep -v total | sort +8 > > but making sure that ls command actually worked > > > any help &g