Re: Passing arguments by value

2005-12-11 Thread $Bill Luebkert
David Nicol wrote: > On 12/10/05, $Bill Luebkert <[EMAIL PROTECTED]> wrote: > >>The fact that you can modify the vrbl passed to a sub from in the sub without >>using a reference still doesn't mean that it's passed by reference. > > No. You are mistaken. That is exactly what passing by reference

Re: Passing arguments by value

2005-12-11 Thread David Nicol
On 12/10/05, $Bill Luebkert <[EMAIL PROTECTED]> wrote: > Chaddaï Fouché wrote: > > > $Bill Luebkert wrote: > > > > > >>Perl normally passes by value . > >> > > > > That is unaccurate : Perl always passes by reference (or rather by > > alias), but we do the copy ourselves when we handle the argument

Re: Help splitting fields with regexp

2005-12-11 Thread DZ-Jay
On Dec 11, 2005, at 09:06, $Bill Luebkert wrote: DZ-Jay wrote: Pretty ingenious, albeit a bit of cheating, uh? :) but if all else fails, I'll probably go with that, thanks! I still wonder if there is a single regexp that could do what I want, and if so, I'd like to learn about it. I'm just

Re: Passing arguments by value

2005-12-11 Thread Chaddaï Fouché
$Bill Luebkert wrote: The fact that you can modify the vrbl passed to a sub from in the sub without using a reference still doesn't mean that it's passed by reference. This is a special case that aliasing provides. This could be partially an exercise in semantics though. This aliasing provi

Re: Help splitting fields with regexp

2005-12-11 Thread $Bill Luebkert
DZ-Jay wrote: > Pretty ingenious, albeit a bit of cheating, uh? :) > but if all else fails, I'll probably go with that, thanks! > > I still wonder if there is a single regexp that could do what I want, > and if so, I'd like to learn about it. I'm just not very familiar with > backtracking and

Re: Help splitting fields with regexp

2005-12-11 Thread DZ-Jay
On Dec 10, 2005, at 22:54, $Bill Luebkert wrote: $_ = q{"LastName, First Name" , "Name" , ; FirstName LastName, address; "First \"nick\" Last" address}; s/\\"/\003/g; # handle embedded \" s/"([^"]+)"/\001$1\002/g;# handle open/close