Re: array ref as subroutine parameter

2012-07-12 Thread timothy adigun
Hi Chris, On Fri, Jul 13, 2012 at 3:28 AM, Shawn H Corey wrote: > On 12-07-12 10:25 PM, Chris Stinemetz wrote: > >> I have an anonymous array below and would like to know how to pass the >> first element to a subroutine as a parameter. >> >> push @data, [$srt,$srfc,$cfc,$cfcq,$cell,$**icell,$isec

Re: array ref as subroutine parameter

2012-07-12 Thread Shawn H Corey
On 12-07-12 10:25 PM, Chris Stinemetz wrote: I have an anonymous array below and would like to know how to pass the first element to a subroutine as a parameter. push @data, [$srt,$srfc,$cfc,$cfcq,$cell,$icell,$isector,$sector]; call to subroutine: session_attempts($srt); Thank you in advance

array ref as subroutine parameter

2012-07-12 Thread Chris Stinemetz
I have an anonymous array below and would like to know how to pass the first element to a subroutine as a parameter. push @data, [$srt,$srfc,$cfc,$cfcq,$cell,$icell,$isector,$sector]; call to subroutine: session_attempts($srt); Thank you in advance, Chris

Re: Unicode question

2012-07-12 Thread Andy Bach
On Thu, Jul 12, 2012 at 3:25 PM, Manfred Lotz wrote: > This is really nice. I fumbled with unpack before but have to admit > that I didn't know about 'use bytes' which is the key. Couple interesting links, unpack in painful detail: http://www.perlmonks.org/?node_id=224666 and utf-8 and "use byte

Re: Unicode question

2012-07-12 Thread Manfred Lotz
On Thu, 12 Jul 2012 21:01:35 +0200 Manfred Lotz wrote: ... > > > > On the one hand I believe there must be a 'better' way. On the other > hand I like the idea (didn't occur to me) to read from the string as > if it were a file. > I found something in a blog from Jan Ploski: http://plosquare.b

Re: Unicode question

2012-07-12 Thread Manfred Lotz
Hi Shawn, Thanks for your reply. On Thu, 12 Jul 2012 14:50:16 -0400 Shawn H Corey wrote: > On 12-07-12 02:08 PM, Manfred Lotz wrote: > > The following code works fine. However, I like to know how to > > retrieve the UTF-8 hex representation of $uchar which is x'e0a487'. > > This is the internal

Re: Unicode question

2012-07-12 Thread Shawn H Corey
On 12-07-12 02:08 PM, Manfred Lotz wrote: The following code works fine. However, I like to know how to retrieve the UTF-8 hex representation of $uchar which is x'e0a487'. This is the internal representation in Perl, so it should be possible to print it out. Is there any function or module I coul

Unicode question

2012-07-12 Thread Manfred Lotz
Hi all, Perhaps this is a stupid question. Anyway. The following code works fine. However, I like to know how to retrieve the UTF-8 hex representation of $uchar which is x'e0a487'. This is the internal representation in Perl, so it should be possible to print it out. Is there any function or modul

Re: regular error

2012-07-12 Thread xiyoulaoyuanjia
> 2012/7/12 timothy adigun <2teezp...@gmail.com> > >> Hi xiyoulaoyuanjia, >> Check my comments below. >> >> On 7/12/12, xiyoulaoyuanjia wrote: >> > i am very sorry ! i am intend to parse variable $a by the regular >> > variable $b . in below way! >> >> the below script will not give any ou