PERL and Mobile Devices.

2004-08-10 Thread Joe Echavarria
Hi there, can i write applications with perl for mobile devices , __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Web Application with PERL or ASP.NET

2004-08-10 Thread Chris Devers
Hi. On Tue, 10 Aug 2004, Joe Echavarria wrote: The company i work is considering two tools for the web version of a loan system. I need to prove that perl is better that ASP.NET for the project. Can anyone help me ? Maybe, with concrete questions of reasonable scope. is posible with perl have c

Re: Web Application with PERL or ASP.NET

2004-08-10 Thread JupiterHost.Net
Joe Echavarria wrote: Hi there, Hello, The company i work is considering two tools for the web version of a loan system. I need to prove that perl is better that ASP.NET for the project. Can anyone help me ?, is posible with perl have controls ?, data grids ?, date controls ?, the way that asp.

Re: Checking if URL is on a list.

2004-08-10 Thread Wiggins d Anconia
> > I know there is a much simpler way to do this. What this does is check a URL > written with and without www. or trailing / against a list of urls that (one > at a time) are placed in $siteurl2. > > $FORM{'siteurl'} is the site url being submitted. > $alternativeurl is $FORM{'siteurl'} wit

Re: checking all pieces of split data for NULL

2004-08-10 Thread Jeff 'japhy' Pinyan
On Aug 10, Tim McGeary said: sub empty_fields { my $msg = "You left these fields empty: "; $msg .= join ", ", @[EMAIL PROTECTED]; # displays $msg to the user somehow } > >How do I force that AND not output both parts of the hash since I just >want the values, no

RE: regex problem

2004-08-10 Thread Chris Devers
On Tue, 10 Aug 2004 [EMAIL PROTECTED] wrote: So Data::Dumper shows me a structure of any scaler? Could you show me an example? Data::Dumper is a tool for showing the structure of *any* data. As is often the case, the perldoc has some of the best documentation: perldoc Data::Dumper It starts o

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these are '' then write to error log"? Assuming you store the data in an array, you

Web Application with PERL or ASP.NET

2004-08-10 Thread Joe Echavarria
Hi there, The company i work is considering two tools for the web version of a loan system. I need to prove that perl is better that ASP.NET for the project. Can anyone help me ?, is posible with perl have controls ?, data grids ?, date controls ?, the way that asp.net works ?, why perl is bett

Re: checking all pieces of split data for NULL

2004-08-10 Thread Jeff 'japhy' Pinyan
On Aug 10, Tim McGeary said: >I have a file of data that I want to safety check to ensure that there >is data for each piece of the line being split. Is there a fast way to >say "If any of these are '' then write to error log"? Assuming you store the data in an array, you can simply say: if (

Checking if URL is on a list.

2004-08-10 Thread Jimstone77
I know there is a much simpler way to do this. What this does is check a URL written with and without www. or trailing / against a list of urls that (one at a time) are placed in $siteurl2. $FORM{'siteurl'} is the site url being submitted. $alternativeurl is $FORM{'siteurl'} without the www. i

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these are '' then write to error log"? Assuming you store the data in an array, yo

RE: checking all pieces of split data for NULL

2004-08-10 Thread Bob Showalter
Tim McGeary wrote: > I have a file of data that I want to safety check to ensure that there > is data for each piece of the line being split. Is there a fast way > to say "If any of these are '' then write to error log"? die "One or more fields is zero length\n" if grep !length, @fields; d

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL PROTECTED] Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: follow-up question: will this only be true if $item of @array is completely empty? This is the type of data for each $item of @array: ID, name_f

Re: File Size Calculator

2004-08-10 Thread Brian Gerard
And the clouds parted, and Brian Gerard said... > > [1] http://www.alcyone.com/max/reference/physics/binary.html > -anyone remember offhand the URL to the /. story on these, btw? > ...never mind. Found it. (uncaught typo on my first google query... DOH!) http://slashdot.org/articles/99/

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
this didn't go through the first time... resending... Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these are '' then write to er

Re: checking all pieces of split data for NULL

2004-08-10 Thread JupiterHost.Net
Tim McGeary wrote: I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these are '' then write to error log"? How about this: for(@lines) { chomp; print ERRLOG 'Blank line' if $_ eq '';

RE: File Size Calculator

2004-08-10 Thread Charles K. Clarkson
SilverFox <[EMAIL PROTECTED]> wrote: : : I haven't put anything together as yet. Putting : some if/elsif statement together would be the : easiest way I can think off. Something like: We can see a few problems right off. All scripts should start with 'strict' and 'warnings'. We need a consi

RE: checking all pieces of split data for NULL

2004-08-10 Thread Moon, John
-Original Message- From: Tim McGeary [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 10:01 AM To: [EMAIL PROTECTED] Subject: checking all pieces of split data for NULL I have a file of data that I want to safety check to ensure that there is data for each piece of the line being

Re: File Size Calculator

2004-08-10 Thread Brian Gerard
And the clouds parted, and SilverFox said... > > Hi all, I'm trying to writing a script that will allow a user to enter a > number and that number will be converted into KB,MB or GB depending on the > size of the number. Can someone point me in the right direction? > > Example: > user enter: 59

Re: checking all pieces of split data for NULL

2004-08-10 Thread Wiggins d Anconia
> I have a file of data that I want to safety check to ensure that there > is data for each piece of the line being split. Is there a fast way to > say "If any of these are '' then write to error log"? > > Thanks, > Tim > Do you mean something like? foreach my $piece (split /\|/, $line) {

Re: checking all pieces of split data for NULL

2004-08-10 Thread Jose Alves de Castro
On Tue, 2004-08-10 at 15:01, Tim McGeary wrote: > I have a file of data that I want to safety check to ensure that there > is data for each piece of the line being split. Is there a fast way to > say "If any of these are '' then write to error log"? Let's say you have your line split in @line

Re: checking all pieces of split data for NULL

2004-08-10 Thread Jeff 'japhy' Pinyan
On Aug 10, Tim McGeary said: >follow-up question: will this only be true if $item of @array is >completely empty? This is the type of data for each $item of @array: > >ID, name_f, name_l, email, id, contact, group, member > >I am splitting this by commas into different $scalers to manipulate. >A

RE: Net::FTP Help !

2004-08-10 Thread Chris Federico
Thanks Kelvin /Wiggins .. Kelvin when you say next if $_ =~ /^d|^l/; are you pattern mattching here ? Being new to this it seems confusing to me also: if ($_ =~ /(.+)(\d\d:\d\d) (.+)/) { next if ($2 eq '.' or $2 eq '..'); push @files, $2; In terms I can understand what is this doing .

Re: checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
Jeff 'japhy' Pinyan wrote: On Aug 10, Tim McGeary said: follow-up question: will this only be true if $item of @array is completely empty? This is the type of data for each $item of @array: ID, name_f, name_l, email, id, contact, group, member I am splitting this by commas into different $scaler

Re: File Size Calculator

2004-08-10 Thread mgoland
Quickest wya would be to get the left over from begining. ... print "Please enter your number:\n"; chomp($num=); $bytes = $num % $kilo; $num -= $bytes ... HTH, Mark G. - Original Message - From: SilverFox <[EMAIL PROTECTED]> Date: Monday, August 9, 2004 12:06 pm Subject: Re: File Size

checking all pieces of split data for NULL

2004-08-10 Thread Tim McGeary
I have a file of data that I want to safety check to ensure that there is data for each piece of the line being split. Is there a fast way to say "If any of these are '' then write to error log"? Thanks, Tim -- Tim McGeary Senior Library Systems Specialist Lehigh University 610-758-4998 [EMAIL

RE: regex problem

2004-08-10 Thread DBSMITH
cool thanks I guess I am a wanna be programmer but do UNIX in real life. So Data::Dumper shows me a structure of any scaler? Could you show me an example? thank you, Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams "Charles K. Clarkson" <[EMAIL PROTECTED]> 08/09/2004 06:31 PM

Re: File Size Calculator

2004-08-10 Thread SilverFox
Jose Alves De Castro wrote: > On Mon, 2004-08-09 at 14:53, David Dorward wrote: >> On 9 Aug 2004, at 14:34, SilverFox wrote: >> >> > Hi all, I'm trying to writing a script that will allow a user to enter >> > a >> > number and that number will be converted into KB,MB or GB depending on >> > the >

Re: Net::FTP Help !

2004-08-10 Thread Kelvin Wu
my @raw_list = $ftp->dir($remote_dir); my @files; for (@raw_list) { # Skip directory and symblink next if $_ =~ /^d|^l/; # Store file name if ($_ =~ /(.+)(\d\d:\d\d) (.+)/) { next if ($2 eq '.' or $2 eq '..'); push @files, $2; } } On Mon, 9 Aug 2004 19:38:19 -0600, Wiggins d An

Re: COMPLEX ARRAY STRUCTURE

2004-08-10 Thread Ramprasad A Padmanabhan
Luis Daniel Lucio Quiroz wrote: You are wrong, I need some more flexible, I dont know what attributes will be added, that's why I need array be coded on fly,with somthin like this $result = $ldap->add( 'cn=Barbara Jensen, o=University of Michigan, c=US', attr =>$attrs); so $attrs array is f