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
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
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
>
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
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
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
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
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 .
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
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
> 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) {
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
-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
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
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 '';
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
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/
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
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
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
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
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 (
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
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
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
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
>
> 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
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.
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
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,
30 matches
Mail list logo