Re: Invalid Unicode

2007-11-20 Thread Mark Wagner
On Nov 20, 2007 8:22 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote: > Are you trying to ask, will Perl prohibit the use of invalid Unicode > characters? Perl strings should be safe for any data. That's basically what I needed to know, thanks. -- Mark Wagner -- To unsubscribe, e-mail: [EMAIL PROTEC

Re: Invalid Unicode

2007-11-20 Thread Tom Phoenix
On 11/20/07, Mark Wagner <[EMAIL PROTECTED]> wrote: > To simplify the question, can I use characters that aren't valid > Unicode, and if so, are there any consequences? Do you mean, suppose I replace every non-ASCII character with some invalid character: my $invalid = chr(0x11); $dat

Re: Invalid Unicode

2007-11-20 Thread Mark Wagner
On Nov 20, 2007 7:28 PM, Tom Phoenix <[EMAIL PROTECTED]> wrote: > > On 11/20/07, Mark Wagner <[EMAIL PROTECTED]> wrote: > > I've got a program where I could greatly simplify things by > > temporarily replacing strings with single characters. However, the > > potential input includes any valid Unic

Re: Conditions and actions in an external chart ?

2007-11-20 Thread Tom Phoenix
On 11/20/07, Jo for Groups and Lists <[EMAIL PROTECTED]> wrote: > Is there a way to store and retrieve code for conditions and actions in > a chart? Something like > > Condition action > $Pet eq "dog" $suggest.="Buy a Bone?" > $numBiscuits >1 $subTotal+=($numBiscuits*2.00) You've

Re: Invalid Unicode

2007-11-20 Thread Tom Phoenix
On 11/20/07, Mark Wagner <[EMAIL PROTECTED]> wrote: > I've got a program where I could greatly simplify things by > temporarily replacing strings with single characters. However, the > potential input includes any valid Unicode character. Assuming that > the invalid characters are never output to

Invalid Unicode

2007-11-20 Thread Mark Wagner
I've got a program where I could greatly simplify things by temporarily replacing strings with single characters. However, the potential input includes any valid Unicode character. Assuming that the invalid characters are never output to anything, are there any problems that I'd encounter from us

Conditions and actions in an external chart ?

2007-11-20 Thread Jo for Groups and Lists
Is there a way to store and retrieve code for conditions and actions in a chart? Something like Condition action $Pet eq "dog" $suggest.="Buy a Bone?" $numBiscuits >1 $subTotal+=($numBiscuits*2.00) ($cond,$act)=split(/\t/); if ($cond) { $act; } I haven't a clue what I need to lo

Re: what's wrong with my http header

2007-11-20 Thread Rob Dixon
Francois wrote: I tried to get data from a site which use cookies and redirect the user, I spend a lot of time with the same result: connection timed out until I realised that all was fine if I did'nt send the header... Thanks for any explanations !!! Francois here is my code: use strict;

Re: outlook module

2007-11-20 Thread oryann9
Why not just create a message filter or rule or whatever Outlook calls it (or multiple ones for various criteria)? > > I did and it I cannot get it to work. Be a better pen pal. Text or chat wit

Re: Need help with date-time and output

2007-11-20 Thread Tom Phoenix
On 11/20/07, Eric Krause <[EMAIL PROTECTED]> wrote: > I think he can't download modules. I think he *thinks* he can't download modules. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.

Re: Need help with date-time and output

2007-11-20 Thread Gunnar Hjalmarsson
Tom Phoenix wrote: On 11/20/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote: No (access to) modules available other than what comes with the basic perl installation. *** I do NOT know how to increment (and format as "2007/01/01") date so that it crosses over for each new month and know when it is

Re: Need help with date-time and output

2007-11-20 Thread John W . Krahn
On Tuesday 20 November 2007 14:00, Gerald Wheeler wrote: > Running Perl 5.6.1 on Solaris 9 SPARC > No (access to) modules available other than what comes with the basic > perl installation. > > I have a file: ifiln.csv as such: > Julian Day of the year, value > 1,4144.34 > 2,4144.38 > 3,4144.38 [

Re: Rename Files

2007-11-20 Thread Dr.Ruud
"Allison Baldoni" schreef: > I'm trying to write a script that will browse a windows directory and > rename all files in it and its subdirectories. A file name such as > 123TEST987.docneeds to be renamed to > 123987.doc. all files have TEST in the name. > I am unsure of the best way to do this.

Re: Need help with date-time and output

2007-11-20 Thread Tom Phoenix
On 11/20/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote: > Running Perl 5.6.1 on Solaris 9 SPARC > No (access to) modules available other than what comes with the basic > perl installation. > *** I do NOT know how to increment (and format as "2007/01/01") date so > that it crosses over for each new

Need help with date-time and output

2007-11-20 Thread Gerald Wheeler
Running Perl 5.6.1 on Solaris 9 SPARC No (access to) modules available other than what comes with the basic perl installation. I have a file: ifiln.csv as such: Julian Day of the year, value 1,4144.34 2,4144.38 3,4144.38 4,4144.38 5,4144.44 6,4144.48 7,4144.48 8,4144.50 9,4144.50 10,4144.48 11,41

Re: Tree data structure

2007-11-20 Thread Vijay Kumar Adhikari
> Perhaps if you told us what you need > a tree for (because you almost never need a tree for itself) we could > suggest a good high level module. I am trying to analyze BGP routing table available at RouteViews routing archive. The data looks something like 1.0.0.0/8 1 2 3 4 5 6

Re: Tree data structure

2007-11-20 Thread Chas. Owens
On Nov 20, 2007 12:30 PM, Vijay Kumar Adhikari <[EMAIL PROTECTED]> wrote: > > Perhaps if you told us what you need > > a tree for (because you almost never need a tree for itself) we could > > suggest a good high level module. > > I am trying to analyze BGP routing table available at RouteViews > r

Re: How to get the name of the variable a reference is "pointing" at

2007-11-20 Thread Frank Bergemann
Hi Paul, just another level of indirection - should have known that :-) - many thanks! rgds! Frank -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: how to use $Storable::interwork_56_64bit

2007-11-20 Thread Tom Phoenix
On 11/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Please tell me how can I use $Storable::interwork_56_64bit Have you seen the documentation for Storable? Do you need something that's not in there? http://perldoc.perl.org/Storable.html Cheers! --Tom Phoenix Stonehenge Perl Traini

Re: what's wrong with my http header

2007-11-20 Thread Tom Phoenix
On 11/20/07, Francois <[EMAIL PROTECTED]> wrote: > what's wrong with my http header You may get a faster, better answer if you ask in a forum concerning http headers and related topics; this forum is for Perl beginners. > I realised that all was fine if I did'nt send the header... So, everythin

what's wrong with my http header

2007-11-20 Thread Francois
I tried to get data from a site which use cookies and redirect the user, I spend a lot of time with the same result: connection timed out until I realised that all was fine if I did'nt send the header... Thanks for any explanations !!! Francois here is my code: use strict; use warnings;

Re: Tree data structure

2007-11-20 Thread Chas. Owens
On Nov 19, 2007 8:37 PM, vijay <[EMAIL PROTECTED]> wrote: > Thanks for the help. I have another question. How do I compute the > depth of those trees. Do I need to first find the root of the tree and > then try of find the depth of the tree? Is there a more efficient > algorithm to find the depth?

RE: :FTP troubles with passive

2007-11-20 Thread RICHARD FERNANDEZ
> -Original Message- > From: Andrew Curry [mailto:[EMAIL PROTECTED] > > Passive - If set to a non-zero value then all data transfers > will be done using passive mode. If set to zero then data > transfers will be done using active mode. Sheesh. I must've read that line 50 times but

RE: :FTP troubles with passive

2007-11-20 Thread Andrew Curry
Passive - If set to a non-zero value then all data transfers will be done using passive mode. If set to zero then data transfers will be done using active mode. -Original Message- From: RICHARD FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: 20 November 2007 15:25 To: beginners@perl.org Subject

Net::FTP troubles with passive

2007-11-20 Thread RICHARD FERNANDEZ
Hi Folks, I have a script that sends a file to a vendor. After running tcpdump I can see that it's trying to do a passive mode transfer which our firewall is having problems with. I would like to turn this off and specify an active mode transfer, but the doco for Net::FTP only talks about turning

how to use $Storable::interwork_56_64bit

2007-11-20 Thread [EMAIL PROTECTED]
Hello, Please tell me how can I use $Storable::interwork_56_64bit Thanks in advance Regards Saurabh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: How to get the name of the variable a reference is "pointing" at

2007-11-20 Thread Paul Lalli
On Nov 20, 6:22 am, [EMAIL PROTECTED] (Frank Bergemann) wrote: > foreach my $ref (\%Hash1, \%Hash2, \%Hash3) { > while(my ($key, $value) = each(%$ref)) { > debug ("$key -> $value") > } > } > > I'd like to prefix the name of the

How to get the name of the variable a reference is "pointing" at

2007-11-20 Thread Frank Bergemann
Hi, foreach my $ref (\%Hash1, \%Hash2, \%Hash3) { while(my ($key, $value) = each(%$ref)) { debug ("$key -> $value") } } I'd like to prefix the name of the hash for the elements in my debug(...). How to get the name of what $r

Re: Tree data structure

2007-11-20 Thread vijay
Thanks for the help. I have another question. How do I compute the depth of those trees. Do I need to first find the root of the tree and then try of find the depth of the tree? Is there a more efficient algorithm to find the depth? Is there a "Tree" module that I can use. I could only find somethi