in perl # replace only the first time $var=~s/\-/\@/; #replace them all, use global flag $var=~s/\-/\@/g;
----- Original Message ----- From: "ricardo" <[EMAIL PROTECTED]> To: "sambar List Member" <[EMAIL PROTECTED]> Sent: Saturday, July 05, 2003 8:28 AM Subject: [sambar] help with perl > hi I whant detect if a what times apear "-" in a variable > > if apear one time replace the - whit a @ i know doit this in PHP > but no in perl > thank > > > > ------------------------------------------------------- > To unsubscribe please go to http://www.sambar.ch/list/ > > > ------------------------------------------------------- To unsubscribe please go to http://www.sambar.ch/list/
