RE: PERL string manipulation

2002-12-20 Thread Kipp, James
> vec() is a bit squirrelly. In a nutshell (heh), vec views its first > argument as a stream of bits taken from the string. The third > argument tells how many bits form a chunk. 8 bits gives chunks that > can each have values from 0 to 255. The second argument tells *which* > chunk, numbering

Re: PERL string manipulation

2002-12-20 Thread Randal L. Schwartz
> "James" == James Kipp <[EMAIL PROTECTED]> writes: >> vec( $output, length $output, 8 ) = ord "E"; James> is it just me or do others on this list have a tough time understanding the James> vec() function? vec() is a bit squirrelly. In a nutshell (heh), vec views its first argument as a stre

RE: PERL string manipulation

2002-12-20 Thread Mystik Gotan
ebmaster Insane Hosts) www.insane-hosts.net MSN: [EMAIL PROTECTED] From: "Kipp, James" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: PERL string manipulation Date: Fri, 20 Dec 2002 08:29:14 -0500 > vec( $output, length $output, 8 ) = ord "E"; is it just me

RE: PERL string manipulation

2002-12-20 Thread Kipp, James
> vec( $output, length $output, 8 ) = ord "E"; is it just me or do others on this list have a tough time understanding the vec() function? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: PERL string manipulation

2002-12-19 Thread John W. Krahn
Colin Johnstone wrote: > > Gidday all, Hello, > In PHP if I want to add something to a string I do this > > $output = ""; > > $output .= "A"; > $output .= "B"; > $output .= "C"; > $output .= "D"; > > print $output; > > How do I do the same in PERL please. That does the same thing in perl:

RE: PERL String Manipulation

2002-12-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Let us know and maybe we can help. Wags ;) -Original Message- From: Johnstone, Colin [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 21:26 To: '[EMAIL PROTECTED]' Subject: RE: PERL String Manipulation Gidday All, Thank You for your help, I must have some other

RE: PERL String Manipulation

2002-12-19 Thread Johnstone, Colin
Gidday All, Thank You for your help, I must have some other error that I can't find. Regards Colin

RE: PERL string manipulation

2002-12-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
The same way. Wags ;) -Original Message- From: Johnstone, Colin [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 21:01 To: '[EMAIL PROTECTED]' Subject: PERL string manipulation Gidday all, In PHP if I want to add something to a string I do this $output = ""; $out