Amit Sharma wrote:
Hi,
I have written one cgi script which gets the input from user and
modify one xml file and I got this string as output
http://prv-arweb3.Test.com/Remedy/servlet/Servlet?URL=http://asharma.Test.co
m/Query1.xml&TURL=http://asharma.Test.com/Remedy1.xsl
Here I am getting mo
Hi,
I have written one cgi script which gets the input from user and
modify one xml file and I got this string as output
http://prv-arweb3.Test.com/Remedy/servlet/Servlet?URL=http://asharma.Test.co
m/Query1.xml&TURL=http://asharma.Test.com/Remedy1.xsl
Here I am getting modified Query1.xml
Hi,
You can write the sub function in another file and include it on the main perl script.
mail.pl
---
#!/usr/bin/perl
sub_file.pl;
---
---
_END_;
sub_file.pl
---
#!/usr/bin/perl
sub fn
{
}
1;
Regards
C.M
On Nov 15, David Inglis said:
>I have a some code that will be used in a number of my scripts, I know
>that if I have a sub in a script I can call that piece of code as many
>times as required from the same script but how do I make this sub
>vailable to other scripts I have written. I imagine th
I have a some code that will be used in a number of my scripts, I know
that if I have a sub in a script I can call that piece of code as many
times as required from the same script but how do I make this sub
vailable to other scripts I have written. I imagine that I create a
seperate script with
On Nov 13, Ricardo Pichler said:
>I need replace in my string the characters in
>upperCase for the same but preceding the simbol +.
>
>$myName="RicardoPichler";
>s/.../.../g; # to do this return "+Ricardo+Pichler";
>
>$myName=~s/[A-Z]/\+[A-Z]/g;
You can't use a regex on the right-hand side of a s
On Thu, 13 Nov 2003 18:15:40 -0500, Nandita Mullapudi wrote:
> I want my script to carry out a loop only if the number stored in
> $diff is positive,
> so i say
> if ($diff =~m/^[-\d+]/) {blah blah}
> but it won't work. why?
That's pretty irrelevant in your case; You're using a cannon to get rid
Ricardo Pichler wrote:
Hi...
I need replace in my string the characters in
upperCase for the same but preceding the simbol +.
Ex.:
$myName="RicardoPichler";
s/.../.../g; # to do this return "+Ricardo+Pichler";
but like this:
$myName=~s/[A-Z]/\+[A-Z]/g;
but this don´t work.
You are attempting to use
Hi...
I need replace in my string the characters in
upperCase for the same but preceding the simbol +.
Ex.:
$myName="RicardoPichler";
s/.../.../g; # to do this return "+Ricardo+Pichler";
but like this:
$myName=~s/[A-Z]/\+[A-Z]/g;
but this don´t work.
Can anyone help-me?
Thanks in advance!
Regar
And the clouds parted, and Jeff 'japhy' Pinyan said...
>
> Well, your regex is matching either a digit, a -, or a + as the first
> character in $diff. If you wanted to match a POSITIVE number, you'd be
> better with /^+?\d/, but WHY are you using a regex for a MATH problem?
>
> if ($diff > 0)
And the clouds parted, and Nandita Mullapudi said...
>
> This has to be really easy- but I cant get it to work:
> I want my script to carry out a loop only if the number stored in
> $diff is positive,
> so i say
> if ($diff =~m/^[-\d+]/) {blah blah}
> but it won't work. why?
> TIA
> -Nandita
Hi N
> Is there a way to "peek" at the top or bottom of an array?
for the first element you could "peek" like:
$first = $array[0];
for the last element you could "peek" like:
$last = $array[$#array];
$# indexes the last element of the array. just make sure you use the same
array's name in the index
On Nov 13, Nandita Mullapudi said:
>This has to be really easy- but I cant get it to work:
>I want my script to carry out a loop only if the number stored in
>$diff is positive,
>so i say
>if ($diff =~m/^[-\d+]/) {blah blah}
>but it won't work. why?
Well, your regex is matching either a digit, a
On Fri, 14 Nov 2003 07:47:36 +1100, Colin Johnstone wrote:
> my $formName = 'form'.$self->?
my $formName = 'form' . $self->{'FRM_CNT'};
> my ($proto, $sysData) = @_;
> my $class = ref($proto) || $proto;
No need for all this. Just write:
my $class = shift;
my $sysData = shift;
-
On Thursday, Nov 13, 2003, at 15:25 US/Pacific, Dan Anderson wrote:
Is there a way to "peek" at the top or bottom of an array? Sort of
like
pop or shift but without needing to insert the value back into the
array?
I suppose I could do something like:
my $check_me = pop @array;
push @array, $ch
> -Original Message-
> From: Tore Aursand [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 13, 2003 3:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Counting (easy!)
>
>
> On Thu, 13 Nov 2003 16:19:32 -0500, Jimstone77 wrote:
> > I have a list of email addresses in a text file one to a
On Thu, 13 Nov 2003 16:19:32 -0500, Jimstone77 wrote:
> I have a list of email addresses in a text file one to a line. How would I
> seach for a particular email address?
>
> $email = "[EMAIL PROTECTED]";
>
> while {
>if ($email eq $_) {
> $OK = 1;
>}
> }
Doesn't this work? I wou
Thanks,
-Nandita
-Original Message-
From: Nandita Mullapudi [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 5:16 PM
To: [EMAIL PROTECTED]
Subject: regexp matching- real simple!
This has to be really easy- but I cant get it to work:
I want my script to carry out a loop only if t
On Thu, 2003-11-13 at 18:25, Dan Anderson wrote:
> Is there a way to "peek" at the top or bottom of an array? Sort of like
> pop or shift but without needing to insert the value back into the
> array?
>
> I suppose I could do something like:
>
> my $check_me = pop @array;
> push @array, $check_m
In case anyone is wondering why I want to do this, I am running through
an array (popping out all elements) in order. Some things from the
array act differently depending on what is left or right of them (if I'm
shifting or popping respectively). I want to double check before I pop
or shift.
-Da
How about:
my $check_first = $array[0];
my $check_last = $array[-1];
-Original Message-
From: Dan Anderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 3:25 PM
To: 'Beginners Perl'
Subject: peeking at the top or bottom of an array
Is there a way to "peek" at the top or
I got this working. I found what I was looking for at cpan's site.
http://search.cpan.org/dist/Image-Size/
works:
#!/usr/bin/perl -w
use strict;
# to read the files via http that each url points to.
my $img = "";
my $the_url = 'http://homepage.mac.com/galaher/images/maul.jpg';
# Since printin
On Thu, 2003-11-13 at 18:15, Nandita Mullapudi wrote:
> This has to be really easy- but I cant get it to work:
> I want my script to carry out a loop only if the number stored in
> $diff is positive,
> so i say
> if ($diff =~m/^[-\d+]/) {blah blah}
> but it won't work. why?
> TIA
> -Nandita
Try t
Is there a way to "peek" at the top or bottom of an array? Sort of like
pop or shift but without needing to insert the value back into the
array?
I suppose I could do something like:
my $check_me = pop @array;
push @array, $check_me;
But that seems kind of inelegant and verbose.
Thanks,
Dan
RedHat 9
Perl v5.8.0 built for i386-linux-thread-multi
I am trying to make a basic modification to a simple HTTP daemon which uses
the HTTP::Daemon class.
I want to pass additional headers to the client prior to sending the body of
the html message. I am setting the content-type header in the r
On Thursday, Nov 13, 2003, at 14:10 US/Pacific, Bob X wrote:
This may not have a difinitive answer. But will the modules I use for
5.8.0
work/be available with 5.8.1? Basically I am using HTML-Template and
CGI-Application and those are the ones I would be worried about.
yes.
the 'hard cut over
This has to be really easy- but I cant get it to work:
I want my script to carry out a loop only if the number stored in
$diff is positive,
so i say
if ($diff =~m/^[-\d+]/) {blah blah}
but it won't work. why?
TIA
-Nandita
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
On Thursday, Nov 13, 2003, at 12:29 US/Pacific, Chuk Goodin wrote:
[..]
While that would indeed be the Best Practice, as a beginner just
learning,
one of the things I like about perl are the differences from other
(usually compiled) languages that I'm used to.
[..]
Chuk, et al,
a part of the rea
This may not have a difinitive answer. But will the modules I use for 5.8.0
work/be available with 5.8.1? Basically I am using HTML-Template and
CGI-Application and those are the ones I would be worried about.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Thu, Nov 13, 2003 at 09:16:59PM -, Rob Dixon wrote:
> Steve Grazzini wrote:
>> This is a documented optimization w/r/t foreach() loops, but the same
>> thing applies to the foreach() modifier.
>
> What the code is optimised to is a touch OT, but I've never seen this
> documented Steve. Can
On Thu, 2003-11-13 at 16:41, Paul Kraus wrote:
> Is it possible to connect to a 128bit encrypted web site with
> www::mechinize?
>
> My boss wants me to write a script that will get a daily report for some
> of our financial web sites and merchant accounts.
>
> This is kind of high priority so th
> Is it possible to connect to a 128bit encrypted web site with
> www::mechinize?
>
> My boss wants me to write a script that will get a daily report for some
> of our financial web sites and merchant accounts.
>
> This is kind of high priority so the sooner you can help the better.
>
> This i
On Nov 14, Colin Johnstone said:
>I have to keep track of the number of forms on my page so I can create
>unique names for them, to do that I have initiated a variable FRM_CNT.
>
>The modification I have to make is to add a sub that produces the HTML for
>a drop down box, one of the first tasks of
Is it possible to connect to a 128bit encrypted web site with
www::mechinize?
My boss wants me to write a script that will get a daily report for some
of our financial web sites and merchant accounts.
This is kind of high priority so the sooner you can help the better.
This is the address I am t
On Thu, 2003-11-13 at 16:34, Dan Muey wrote:
> I either:
> look it up on http://search.cpan.org
> or
> perldoc Module::Name (via the command line)
Doh! I guess you learn something new each day ... I wasn't aware
perldoc would automatically check @INC for the module ... *sigh*
Please choose a subject that is reflective of your post and start a new
thread when appropriate...
>
> I have a list of email addresses in a text file one to a line. How
would I
> seach for a particular email address?
>
> $email = "[EMAIL PROTECTED]";
>
The @ in the above does need to be esca
> How do you get help on a perl module..?
>
>
I either:
look it up on http://search.cpan.org
or
perldoc Module::Name (via the command line)
After you look at those if you're stuck ask maybe this list or a
list specific to that module if there is one.
For instance I li
I have a list of email addresses in a text file one to a line. How would I
seach for a particular email address?
$email = "[EMAIL PROTECTED]";
while {
if ($email eq $_) {
$OK = 1;
}
}
It seems the @ symbol somehow doesn't work in this search. What would be a
better (or right) way t
On Thu, 2003-11-13 at 15:50, Suman, Kaushik wrote:
> How do you get help on a perl module..?
I find that going to search.cpan.org and searching for the module in
question is enough... You can also use perldoc if you know where the
.pm file was installed..
> -Original Message-
> From: Jas
Steve Grazzini wrote:
>
> On Thu, Nov 13, 2003 at 12:09:24PM -0800, John W. Krahn wrote:
> > Rob Dixon wrote:
> > > For the subscribers who don't already know,
> > > what are the differences between my
> > >
> > > print for 1..5
> >
> > for iterates over the list 1..5 and sets $_ with each value
Steve Grazzini wrote:
>
> On Thu, Nov 13, 2003 at 12:09:24PM -0800, John W. Krahn wrote:
> > Rob Dixon wrote:
> > > For the subscribers who don't already know,
> > > what are the differences between my
> > >
> > > print for 1..5
> >
> > for iterates over the list 1..5 and sets $_ with each value
John W. Krahn wrote:
>
> >
> > For the subscribers who don't already know,
> > what are the differences between my
> >
> > print for 1..5
>
> for iterates over the list 1..5 and sets $_ with each value and then
> print is called for each item and print out the value in $_.
>
> > and Tore's
> >
>
Hi Sarah.
Sarah wrote:
>
> I apologize for my earlier question. I don't mean that
> I want someone to write a program for me.
No, and you didn't say so either. It's just that we get
a little twitchy here about that sort of request. You've
nothing to apologise for.
> I was just perhaps looking f
That sounds like a shell scripting problem. All you'd need to do is
create a string like:
mktrace file1 file2 & mktrace file3 file4 & etc...
At least that would work under *nix. & backgrounds the process.. So
you could create a long string of files and calls to mktrace (assuming
mktrace suppor
Would someone please help me to use CPAN to update / install modules.
I'm using ActiveState Perl 5.6, on winXP.
I'm fairly sure its happening because I stupidly set up all my programs
below a 'My Programs' directory with an embedded space.
The messages I get are typically like these :
=
How do you get help on a perl module..?
-Original Message-
From: Jason Frisvold [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 11:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: trying again
Check out Mail::Mailer ... I use that for 99% of my scripts that n
Gidday All,
Im modifying this package. What it does is produce the html for our
presentation templates of our content management system.
I have to keep track of the number of forms on my page so I can create
unique names for them, to do that I have initiated a variable FRM_CNT.
One of my more
On Thu, Nov 13, 2003 at 11:33:14AM -0800, drieux wrote:
> So let us step back and look at the 'root cause problem'
>
> so I want to just 'fix it on the fly'
>
> and yes, foo.pl as an editable text file will allow you
> simply open it with a text editor and WHACK a fix in. Unlike
> RealCode[
Hello All,
I need to write a program to call a C++ program (mktrace). The program ask
for an input file and then it ask for output file. I have 1000 files that
want to input and I do not want to do one at a time.
QKN
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
On Thu, Nov 13, 2003 at 12:09:24PM -0800, John W. Krahn wrote:
> Rob Dixon wrote:
> > For the subscribers who don't already know,
> > what are the differences between my
> >
> > print for 1..5
>
> for iterates over the list 1..5 and sets $_ with each value and then
> print is called for each it
Thank you for your patience and help bringing me up to speed on how to
be a better user of this list. My previous post was my first.
I am trying to write a script that will use Image::Size module in
conjunction with the LWP module to retrieve the height and width
attribute of a gif or jpg on a re
Rob Dixon wrote:
>
> Tore Aursand wrote:
> >
> > On Thu, 13 Nov 2003 09:05:45 -0600, Dan Muey wrote:
> > >> In Perl that is usually written as:
> > >>
> > >> for $count ( 1 .. 5 ) {
> > >> print "$count\n";
> > >> }
> >
> > > Or even easier:
> > > for(1..5) { print; }
> >
> > Or _even_ easier;
> I'm an absolute beginner to Perl. I need to write a script that will take
tables from a SQL server database, somehow get them into HTML format, and
automatically generate an email to a list of users containing the info I
just converted into HTML. All I can seem to find online is generating
autom
On Thursday, Nov 13, 2003, at 11:23 US/Pacific, [EMAIL PROTECTED] wrote:
I apologize for my earlier question. I don't mean that I want someone
to write a program for me. I was just perhaps looking for some
generic info on Perl's capability to generate email? If that exists?
you will want to b
--On Thursday, November 13, 2003 12:35 AM -0800 "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
Now that you explained all that, should I reply or reply all?
ie - this message does a reply all as:
To: "R. Joseph Newton" <[EMAIL PROTECTED]>
CC: Beginners--Perl <[EMAIL PROTECTED]>, Rob Dixon
<
Check out Mail::Mailer ... I use that for 99% of my scripts that need
email support..
---
Jason H. Frisvold
Backbone Engineering Supervisor
Engineering Dept.
Penteledata
RedHat Engineer - RHCE # 807302349405893
[EMAIL PROTECTED]
---
"I love deadline
--howdy:
--not sure i follow, but i have a few questions for
--you:
* you want to connect to the database and do, what,
exactly? show the data in html?
* you have a list of people in the database, perhaps,
that you want to email? what platform? not that
it really matters ... windows, linu
On Thursday, Nov 13, 2003, at 10:34 US/Pacific, Chuk Goodin wrote:
[..]
Basically, if I've got a directory
sitting there with three or four different types of files in it, I'd
like
to know which ones are perl (and I can just open them up in vi and fix
them) and which ones aren't (and I'll have to
On Nov 13, 2003, at 1:23 PM, [EMAIL PROTECTED] wrote:
I apologize for my earlier question. I don't mean that I want someone
to write a program for me. I was just perhaps looking for some
generic info on Perl's capability to generate email? If that exists?
Perl can definitely do anything you s
On Nov 13, 2003, at 1:14 PM, [EMAIL PROTECTED] wrote:
Hi-
I'm an absolute beginner to Perl. I need to write a script that will
take tables from a SQL server database, somehow get them into HTML
format, and automatically generate an email to a list of users
containing the info I just converted
I apologize for my earlier question. I don't mean that I want someone to write a
program for me. I was just perhaps looking for some generic info on Perl's capability
to generate email? If that exists?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Hi-
I'm an absolute beginner to Perl. I need to write a script that will take tables from
a SQL server database, somehow get them into HTML format, and automatically generate
an email to a list of users containing the info I just converted into HTML. All I can
seem to find online is generating
--On Wednesday, November 12, 2003 6:25 PM -0500 Casey West
<[EMAIL PROTECTED]> wrote:
It was Wednesday, November 12, 2003 when [EMAIL PROTECTED] took the
soap box, saying:
: hum could we not get a nice topic prefix added to the list?
: it would make it a lot easy to make mail filters that could k
Tore Aursand wrote:
>
> On Thu, 13 Nov 2003 09:05:45 -0600, Dan Muey wrote:
> >> In Perl that is usually written as:
> >>
> >> for $count ( 1 .. 5 ) {
> >> print "$count\n";
> >> }
>
> > Or even easier:
> > for(1..5) { print; }
>
> Or _even_ easier;
>
> print 1..5;
For the subscribers who d
> >What kind of naming structure would you suggest for people who just
> >want
> >to use extensions for organizational purposes?
>
> when you say for 'organizational purposes' do you
> mean in terms of tracking the 'source code' in a
> source code control system? Or do you mean tracking
> named a
On Thu, Nov 13, 2003 at 10:06:19AM -0800, Ravi Malghan wrote:
> Hi: whatz the best way to copy an multidimensional
> array onto another. I have never used something like
> clone, just want to know whatz the easiest route.
Storable::dclone() is probably the easiest:
use Storable qw(dclone);
On Thursday, Nov 13, 2003, at 08:40 US/Pacific, NIPP, SCOTT V (SBCSI)
wrote:
I am an SA for several HP-UX systems. Recently a user had a problem
running a Perl job and he indicated that it would die at about 1GB.
Now, I
believe that the HP-UX 11i kernel parameter 'maxdsiz' is the limit he
is
Mike Blezien wrote:
>
> Ran accross a function called "ceil" and from the information I got on this:
>
> "ceil() [Stands for ceiling], it just rounds a float value up.. so ceil(4.7) ==
> ceil(4.1342) == 5"
>
> would this be the same as using "int" function in perl or is there function in
> perl cal
Hi: whatz the best way to copy an multidimensional
array onto another. I have never used something like
clone, just want to know whatz the easiest route.
Thanks
Ravi
__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/wha
On Thursday, Nov 13, 2003, at 09:32 US/Pacific, Chuk Goodin wrote:
[..]
What kind of naming structure would you suggest for people who just
want
to use extensions for organizational purposes?
[..]
when you say for 'organizational purposes' do you
mean in terms of tracking the 'source code' in a
> By replacing the comma with a colon I was able connect to the
> database; it now looks like I have a permission problem where
Cool, I'm glad that worked!
> the user on computer B has no permission to reload the data
> on computer A.
>
> I was also able to login at the command prompt with t
On Nov 13, 2003, at 11:38 AM, Mike Blezien wrote:
Hi,
so I guess my question is, if I want to accomplish the same results as
this "ceil" how would that be accomplished in Perl ??
use POSIX qw/ceil/;
$float = '1.9';
print ceil($float);
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
On Wed, Nov 12, 2003 at 07:55:24PM -0800, Randal L. Schwartz wrote:
> Rob> Perl programs conventionally go in *.pl files.
>
> No. Only on broken architectures that demand it (read: "windows").
> On Unix, Perl programs have no extension, any more than "cat" has an
> extension. Why should the user
Yes, this did the trick exactly :)
thanks for your help
--
MikeBlezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://www.thunder-rain.com
Quality Web Hosting
http://www.justlightening.net
MSN: [EMAIL PROTECTED]
=-=-=-=-=-=-
On Nov 13, 2003, at 10:38 AM, Mike Blezien wrote:
Hi,
so I guess my question is, if I want to accomplish the same results as
this "ceil" how would that be accomplished in Perl ??
Does this one-liner get you started?
perl -e 'use POSIX qw(ceil); print ceil(2.3), "\n";'
James
--
To unsubscribe,
Hi,
so I guess my question is, if I want to accomplish the same results as this
"ceil" how would that be accomplished in Perl ??
thx's
--
MikeBlezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://www.thunder-rain.com
Quali
I am an SA for several HP-UX systems. Recently a user had a problem
running a Perl job and he indicated that it would die at about 1GB. Now, I
believe that the HP-UX 11i kernel parameter 'maxdsiz' is the limit he is
running into here, but I am not entirely sure. The question I really hav
On Thursday, Nov 13, 2003, at 07:49 US/Pacific, McMahon, Chris wrote:
[..]
I name my Perl scripts on my FreeBSD box "something.pl" because
I'm the first (and so far only, but not for long) user of a Unix-y
system in an all-Windows shop, and I don't want my colleagues to be
confused. Quizzic
By replacing the comma with a colon I was able connect to the database;
it now looks like I have a permission problem where the user on computer
B has no permission to reload the data on computer A.
I was also able to login at the command prompt with the same error.
My error was :
ERROR 1045: Ac
On Thu, 13 Nov 2003 20:15:18 +0530, Sachin Mathur wrote:
> I Wanted to know what are the differences in version 5.005 and version
> v.5.8.0 of perl
Check out perldelta for each version.
--
Tore Aursand <[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
On Nov 13, 2003, at 10:17 AM, Mike Blezien wrote:
So if I use the int() this will provide the same results as this
ceil() function does... ??
No, it's not the same. See the chart earlier in this thread. Sorry
for confusing the issue.
James
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
On Thu, 13 Nov 2003 09:05:45 -0600, Dan Muey wrote:
>> In Perl that is usually written as:
>>
>> for $count ( 1 .. 5 ) {
>> print "$count\n";
>> }
> Or even easier:
> for(1..5) { print; }
Or _even_ easier;
print 1..5;
Hah! :-)
--
Tore Aursand <[EMAIL PROTECTED]>
--
To unsubscribe,
Hi,
So if I use the int() this will provide the same results as this ceil() function
does... ??
thx's
--
MikeBlezien
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Thunder Rain Internet Publishing
Providing Internet Solutions that work!
http://www.thunder-rain.com
Quality Web Hosting
http://www.justl
Dan Muey wrote:
>
> >
> > In Perl that is usually written as:
> >
> > for $count ( 1 .. 5 ) {
> > print "$count\n";
> > }
>
> Or even easier:
> for(1..5) { print; }
> Or if you nee the newline:
> for(1..5) { print "$_\n"; }
If we're competing, then there's
print for 1..5
;)
Rob
--
To
On Nov 13, 2003, at 10:01 AM, Jeff 'japhy' Pinyan wrote:
No, int() is neither exactly like ceil() or floor(). All int() does is
truncate the number to an integer. If you have 2.3, you get 2. If you
have 2.9, you get 2. If you have -2.3, you get -2. If you have -2.9,
you
get -2. If you were
James Edward Gray II wrote:
>
> On Nov 13, 2003, at 9:50 AM, Bob Showalter wrote:
>
> > Mike Blezien wrote:
> >> Hi,
> >>
> >> Ran accross a function called "ceil" and from the information I got
> >> on this:
> >>
> >> "ceil() [Stands for ceiling], it just rounds a float value up.. so
> >> ceil(4.7
On Nov 13, James Edward Gray II said:
>On Nov 13, 2003, at 9:50 AM, Bob Showalter wrote:
>
>> Mike Blezien wrote:
>>> Hi,
>>>
>>> Ran accross a function called "ceil" and from the information I got
>>> on this:
>>>
>>> "ceil() [Stands for ceiling], it just rounds a float value up.. so
>>> ceil(4.7
Kevin Old wrote:
>
> On Thu, 2003-11-13 at 09:33, Rob Dixon wrote:
> > "Bob Showalter" <[EMAIL PROTECTED]> wrote in message
> > >
> > > Christiane Nerz wrote:
> > > > Kevin Old wrote:
> > > > ...
> > > > > select undef, undef, undef, 0.25 or print $_
> > > > > for 1 .. 5;
> > > > ...
> > > > quit
> Hi all,
> i am just curious -- is perl 6 coming with a compiler ?
> thanks,
> regards,
> KM
Yup, and from what somebody else posted it looks to be sweet:
http://www.parrotcode.org/
-Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Nov 13, 2003, at 9:50 AM, Bob Showalter wrote:
Mike Blezien wrote:
Hi,
Ran accross a function called "ceil" and from the information I got
on this:
"ceil() [Stands for ceiling], it just rounds a float value up.. so
ceil(4.7) == ceil(4.1342) == 5"
would this be the same as using "int" function
R. Joseph Newton wrote:
>
> > > There are many references , what line number does it say
> > > is evil and which line below is that?
> >
> > Thanks for your help, I have put a -right here - in the code...
> >
> > }
> > $SQL .= "\n";
> > }
> > #-righ
Mike Blezien wrote:
> Hi,
>
> Ran accross a function called "ceil" and from the information I got
> on this:
>
> "ceil() [Stands for ceiling], it just rounds a float value up.. so
> ceil(4.7) == ceil(4.1342) == 5"
>
> would this be the same as using "int" function in perl
No. int() simply drop
I name my Perl scripts on my FreeBSD box "something.pl" because I'm
the first (and so far only, but not for long) user of a Unix-y system in an
all-Windows shop, and I don't want my colleagues to be confused.
Quizzicality cuts both ways... =)
-Chris
-Original Message-
Hi,
Ran accross a function called "ceil" and from the information I got on this:
"ceil() [Stands for ceiling], it just rounds a float value up.. so ceil(4.7) ==
ceil(4.1342) == 5"
would this be the same as using "int" function in perl or is there function in
perl called "ceil" ??
thx's
--
Mike
> I just added a new method called isadmin to existing and
> working module Noc1.pm
Did you create Noc1 ???
>
> And use this new added method in my index.html like this
index.html ??? Hows' that work?
>
> use Noc1;
> my $noc = new noc1;
> my public = noc->ispublic();
^^ ^^^
Do y
Hi,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> asked:
> I'm actually building a web interface to a news group server (INN).
> One of the feature is to allow a few users to create and
> delete newsgroups from the web.
Hopefully only for your local news hierarchy ;-)
> Normally, from the shell, I woul
km <[EMAIL PROTECTED]> asked:
> i am just curious -- is perl 6 coming with a compiler ?
That depends on your definition of compiler.
It certainly has a compiler that creates byte code, just
as all of the current Perl versions. I don't know wether
it will have a compiler like PerlEx bundled.
Wha
> You object to the idea of hitting the ground running?
No...actually I replied to another poster on this matter. Sometimes
computer books come out based on an Alpha or Beta version -- which is
nice unless there have been significant changes, in which case it can be
a confusing waste of money.
-
Hello all,
I just added a new method called isadmin to existing and
working module Noc1.pm
And use this new added method in my index.html like this
use Noc1;
my $noc = new noc1;
my public = noc->ispublic();
my $admin = noc->isadmin();
if ($admin) { blah blah blah}
When i tried to access ind
On Wed, 12 Nov 2003 23:05:53 -0800, perl wrote:
> Can someone help me with validating email address chars?
This is a FAQ:
perldoc -q "valid mail"
--
Tore Aursand <[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
1 - 100 of 138 matches
Mail list logo