ooopss!! i was wrong ... $^O worked
According to "perldoc perlvar" :
$^O The name of the operating system under which this
copy of Perl was built, as determined during the
configuration process. The value is identical to
$Config{'osname'}.
I thou
on Mon, 13 May 2002 06:24:46 GMT, [EMAIL PROTECTED] (Timothy
Johnson) wrote:
> Are you SURE you can't use $^O?
ActiveState's PerlApp, which is part of it's Perl Dev Kit, has no
problems whatsoever with $^O.
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
> I've never used perl2exe, I don't know much about it, but are
> you 100% sure the interpreter isn't available? That'd make
> every eval{} invalid... and certainly a lot of code uses it.
>
> Try compiling code with:
>
> eval { print $^O }
>
> and see what happens.
Opps, change {} to "", ev
Are you SURE you can't use $^O?
-Original Message-
From: Mayank Ahuja
To: Perl
Sent: 5/12/02 11:09 PM
Subject: Generalized uname
Hi Group!
Is there a module, using which i can determine the Operating System on
which my perl script is running?
I cannot use $^O as the my script will be
> Is there a module, using which I can determine the Operating
> System on which my perl script is running? I cannot use $^O
> as the my script will be an executable (using perl2exe)
> and therfore the interpreter won't be available during runtime
I've never used perl2exe, I don't know much abou
Hi Group!
Is there a module, using which i can determine the Operating System on
which my perl script is running?
I cannot use $^O as the my script will be an executable (using perl2exe)
and therfore the interpreter won't be available during runtime
I came across a module Sys::Hostname which g
Yes that is correct
- Original Message -
From: "bob ackerman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 12:56 AM
Subject: Re: Validation Error
>
> On Sunday, May 12, 2002, at 09:38 PM, Bill Lyles wrote:
>
> > Huh?
> >
>
> i think you are calling an html file
Bill Lyles wrote:
>
> Ok here is the whole script, and as I said this was generated bt Perbuilder
> 2.0 and the email part was generated by Code Magic.
>
> [snip code]
After seeing this code I'm glad I don't use Perlbuilder. Did you
actually pay money for this program? :-)
John
--
use Perl
Todd Wade wrote:
>
> This sub grabs http://weather.noaa.gov/pub/data/forecasts/zone/oh/ohz021.txt
> with LWP::Simple, extracts the current weather conditions out of the heading
> and future forecast, Lowercases the entire string, uppercases the first word
> in every sentence, and returns the stri
On Sunday, May 12, 2002, at 11:08 PM, Todd Wade wrote:
>
> "JosÈ nyimi" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> The Perl slogan is: "There Is More Than One Way To Do It".
>>
>> I'm interested to see how you will do the small convertion below.
>
> T
On Sunday, May 12, 2002, at 09:38 PM, Bill Lyles wrote:
> Huh?
>
i think you are calling an html file that gets the input and posts to this
cgi script.
so drieux is confused when you say the whole script. it is the whole cgi,
but there is an html file that does the post.
> - Original M
Huh?
- Original Message -
From: "drieux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 12, 2002 11:24 PM
Subject: Re: Validation Error
>
> On Sunday, May 12, 2002, at 08:13 , Bill Lyles wrote:
>
> > I have been running this directly from the form in my browser using the
>
On Sunday, May 12, 2002, at 08:12 , Jonathan E. Paton wrote:
first a quick clarification my posting after your original note,
sorry we were in flight concurrently,
I suck, You RULE!
and MAJOR points on the explanation of the delta in the methods.
>> may I recommend that you start with
On Sunday, May 12, 2002, at 08:13 , Bill Lyles wrote:
> I have been running this directly from the form in my browser using the
> post
> method and yes this is the whole script
I'm slow, so bare with me here. Let's call your code
mycode.cgi
and you are calling it in the browser with
On Sunday, May 12, 2002, at 04:53 , John West wrote:
> I found two ways, both of which are OS-specific. One
> is this perl:
>
> http://www.roth.net/perl/scripts/scripts.asp?ProcList.pl
that looks like the basic phrameWork for a piece of code.
all you would need to do is extend it with a Getop
I have been running this directly from the form in my browser using the post
method
and yes this is the whole script
- Original Message -
From: "drieux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 12, 2002 10:46 PM
Subject: Re: Validation Error
>
> On Sunday, May 12,
> may I recommend that you start with trying say:
>
> $hash{1} = [@array1];
>
> or
> my %hash = (
> 1 => [@array1],
> 2 => [@array2],
> );
Be aware there is a difference between:
[@array1]
and:
\@array
because the former flattens the array, and
"José nyimi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The Perl slogan is: "There Is More Than One Way To Do It".
>
> I'm interested to see how you will do the small convertion below.
This sub grabs http://weather.noaa.gov/pub/data/forecasts/zone/oh/ohz0
Thanks all.
Great explanation.
Roee
-Original Message-
From: Jonathan E. Paton [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 13, 2002 5:41 AM
To: [EMAIL PROTECTED]
Subject: Re: accessing an array in a hash
> How do I access a field in an array that is a field of a hash?
> ex:
> %hash
> $
On Sunday, May 12, 2002, at 06:45 , Moked, Roee wrote:
> Hi,
> How do I access a field in an array that is a field of a hash?
> ex:
> %hash
> $hash[1] =@array1
> $hash[2] =@array2
> .
>
> no I want to change $array2[6] via the hash.
may I recommend that you start with trying say:
$
Roee Moked wrote:
> Hi,
> How do I access a field in an array that is a field of a hash?
> ex:
> %hash
> $hash[1] =@array1
> $hash[2] =@array2
> .
>
> no I want to change $array2[6] via the hash.
>
> Thanks
> Roee M.
%hash = (array => ['hello', 'world']);
print $hash{"array"}[0];
print $has
On Sunday, May 12, 2002, at 06:44 , Bill Lyles wrote:
> Ok here is the whole script, and as I said this was generated bt
> Perbuilder
> 2.0 and the email part was generated by Code Magic.
this is gonna sound like a silly question - but are
you testing this at a command line and not from a webP
> How do I access a field in an array that is a field of a hash?
> ex:
> %hash
> $hash[1] =@array1
> $hash[2] =@array2
> .
>
> now I want to change $array2[6] via the hash.
The syntax is wrong, you use {} for hashes... and you wouldn't
normally use numerical indices. Also, you need to take
Ok here is the whole script, and as I said this was generated bt Perbuilder
2.0 and the email part was generated by Code Magic.
#!C:/Perl/bin/perl.exe
use Net::SMTP;
# This script was generated automatically by Perl Builder(tm):
http://www.solutionsoft.com
# ***ENDAUTOGEN:HEADER*** Do NOT modify
Hi,
How do I access a field in an array that is a field of a hash?
ex:
%hash
$hash[1] =@array1
$hash[2] =@array2
.
no I want to change $array2[6] via the hash.
Thanks
Roee M.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Sunday, May 12, 2002, at 06:13 PM, Bill Lyles wrote:
> if ($email !~ /.+\@.+\..+/) {
we assume you are assigning something to $email
and the email address with the '@' is single quoted so it doesn't try to
interpolate.
(or you are escaping the '@' in a double quoted string.)
otherwise the
On Sunday, May 12, 2002, at 06:13 , Bill Lyles wrote:
[..]
> Everytime I run the form it keeps telling me to enter a valid email
> address
> wich of course is my own for testing
>
> Please tell me whats wrong
>
> $message = "" ;
> $found_err = "" ;
>
> $errmsg = "Please enter a valid email addre
I made a script with Perlbuilder 2.0 to get data from a form, then validate
the email address and email the data
Everytime I run the form it keeps telling me to enter a valid email address
wich of course is my own for testing
Please tell me whats wrong
$message = "" ;
$found_err = "" ;
$errmsg
I found two ways, both of which are OS-specific. One
is this perl:
http://www.roth.net/perl/scripts/scripts.asp?ProcList.pl
Another is this command line tool:
http://www.sysinternals.com/ntw2k/freeware/handle.shtml
In a way I like the CLT better, it gives me less
OS-specific code with the exp
On Sun, May 12, 2002 at 07:14:27PM +0200, José Nyimi wrote:
> I'm interested to see how you will do the small convertion below.
>
> sub convert {
> my($in)=@_;
> $in=~/(.)(.*)/;
> $in=uc($1).lc($2);
> return $in;
> }
>
> The task is simply to upercase the first char of a given string and
>
On Sunday, May 12, 2002, at 12:07 , Matthew Harrison wrote:
>
> i want to read a config file for editing. this config file could be in any
> order and could contain lines of junk between the actual config lines.
the general form I like is:
http://www.wetware.com/drieux/pbl/readConfigFile.txt
I am stuck on windows working with a process that runs
as a service. There's a bug in the process (vendor
code) and it doesn't show up in the output of net
start, so net stop can't stop it.
I need to have a script that kills this process using
kill PID, but I am not aware of any command line t
i want to read a config file for editing. this config file could be in any
order and could contain lines of junk between the actual config lines.
what i want is to have the option to seach for the beginning of the line for
something like:
'hostname'
then select the rest of the line for modifi
Hello
Probebly this isn't the right way to ask something, but sins this is the
beginners group I'am trying it.
##
I've downloaded an existing perl script wich downloads a file after
sending the link via email and sends the download back via email.
I adapted it (I'am not an coder and my IQ isn't v
José nyimi wrote:
>
> Hello All,
Hello,
> The Perl slogan is: "There Is More Than One Way To Do It".
>
> I'm interested to see how you will do the small convertion below.
>
> Here is one of mine: probably not the best one :-).
>
> #!/usr/bin/perl
> use strict;
> use warnings;
>
> my $out=&c
> "jn" == josenyimi <[EMAIL PROTECTED]> writes:
jn> The task is simply to upercase the first char of a given string
jn> and lowercase the rest.
$string = ucfirst lc $string;
Nice try, though. :-)
- Chris.
--
$a="printf.net"; Chris Ball | chris@void.$a | www.$a | finger: chris@$a
> "Drieux" == Drieux <[EMAIL PROTECTED]> writes:
Drieux> I just do NOT know right off the top of my head, when,
Drieux> where or HOW I would use that type of a conditional in a split...
@lines = split /\^M\^J|\^J|\^M/, $text_with_unknown_line_endings;
--
Randal L. Schwartz - Stonehenge Co
Hello All,
The Perl slogan is: "There Is More Than One Way To Do It".
I'm interested to see how you will do the small convertion below.
Here is one of mine: probably not the best one :-).
#!/usr/bin/perl
use strict;
use warnings;
my $out=&convert('abCdE');
print "$out\n";
sub convert {
my(
On Sunday, May 12, 2002, at 09:20 , Uriel Wittenberg wrote:
> If your objective is to be contrary while appearing to want to help,
> perhaps your own objective could use some reassessment.
sorry to sound contrary - that is the sound of trying to
get my head around the 'solution' given the 'obje
If your objective is to be contrary while appearing to want to help,
perhaps your own objective could use some reassessment.
My objective is perfectly suited to my wishes -- and I believe I know
even better than you what my wishes are. I want all emails bigger than a
threshold I specify bounced u
At 12:02 2002.05.12, José Nyimi wrote:
>Hello All,
>
>Could you explain this syntax please ?
>
>$x ||= $y || '';
>
>Thanks,
>
>José.
>
$a ||= $b is the same as $a = $a || $b;
So your exmaple translate to
$x = $x || $y || '';
This, I think, means that $x take the value of $y if $x is false (u
Hello All,
Could you explain this syntax please ?
$x ||= $y || '';
Thanks,
José.
-
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !
On Monday, May 6, 2002, at 09:47 , Jason Frisvold wrote:
> Yeah, I thought of doing it that way too However, my purpose was to
> skip the "unnecessary" step and pump the data right into variables.
> This way I "drop" the memory needed to go that extra step and I retain
> readability of code
On Sunday, May 12, 2002, at 12:41 , Gary Hawkins wrote:
> http://www.xml.com/pub/a/2002/05/08/ws-easy.html
>
> It is supposed to be able to compare two XML files. Has anyone used it?
no, haven't used it, looks cool let us know.
> Can you tell me how to install the module(s)?
>
> /g
there
On Saturday, May 11, 2002, at 06:27 , Uriel Wittenberg wrote:
> I'd appreciate if someone could advise which list is appropriate for the
> following question.
I'm not sure I understand the question...
> I currently have:
>
> ---
> use Mail::Internet;
> .
> my $item
I'm going to be working with XML files on Windows. Notice that in Notepad (on
W2K+) you can save a file with different encodings, including Unicode. These
XML files are Unicode. Opened directly in Notepad, they take on an appearance
of having extra spaces between characters.
Grep and diff will
http://www.xml.com/pub/a/2002/05/08/ws-easy.html
It is supposed to be able to compare two XML files. Has anyone used it?
Can you tell me how to install the module(s)?
/g
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
47 matches
Mail list logo