TRYING AGAIN (was: Net::Telnet)

2003-08-23 Thread Gupta, Sharad
I am sure somebody would have a magical touch for me. -Sharad -Original Message- From: Gupta, Sharad Sent: Saturday, August 16, 2003 9:03 PM To: [EMAIL PROTECTED] Subject: Net::Telnet Hi All, I have a small script like this: --

Re: Temp variable

2003-08-23 Thread John W. Krahn
Ryan10975073 wrote: > > hi, Hello, > The statement ($a,$b) = ($b ,$a); is swapping without a third variable. > But looking at a lower level , it is storing a temporary variable in the > registers. Not necessarily. :-) $ perl -le' my ( $x, $y ) = ( 5, 16 ); print "\$x = $x \$y = $y"; $x ^=

Re: Temp variable

2003-08-23 Thread Rob Dixon
Ryan10975073 wrote: > > The statement ($a,$b) = ($b ,$a); is swapping without a third variable. > But looking at a lower level , it is storing a temporary variable in the > registers. No it's not. It's building a temporary list of two values. > How can i get that temporary variable/value from t

Temp variable

2003-08-23 Thread ryan10975073
hi, The statement ($a,$b) = ($b ,$a); is swapping without a third variable. But looking at a lower level , it is storing a temporary variable in the registers. How can i get that temporary variable/value from the registers/memory which will have value of either $a or $b. Would love to see solut

Re: how do I "file lock" for a form?

2003-08-23 Thread Randal L. Schwartz
> "Gregg" == Gregg O'Donnell <[EMAIL PROTECTED]> writes: Gregg> Hi. When a user hits "submit" many times after completeing a Gregg> form, I get multiple (duplicate) entries in my Gregg> spreadsheet. I've read that I can add a hidden field with a Gregg> unique identifier to "lock the file" so t

Re: reinstall PERL

2003-08-23 Thread Bulba007
U¿ytkownik "zsdc" <[EMAIL PROTECTED]> napisa³ w wiadomo¶ci news:[EMAIL PROTECTED] > Bulba007 wrote: > > > How to repair Perl instalation on OBSD 3.3 stable? > > Well, I guess it depends on, like... what's wrong with it? > > If you want to have a fresh install then get the source from CPAN or > inst

Re: Changing case of the first letter of words in string

2003-08-23 Thread zsdc
*Please* CC the mailing list when you answer. I'm writing it so everyone on the list could learn something, not just to fix your program or solve your particular problem. bis wrote: Tnaks zsdc and JEGII. --- zsdc <[EMAIL PROTECTED]> wrote: It gives a syntax error. Maybe try this: #!/usr/b

Re: Changing case of the first letter of words in string

2003-08-23 Thread James Edward Gray II
On Saturday, August 23, 2003, at 02:34 AM, zsdc wrote: s/(SCTN:\s*)(.+)$/join '', $1, map { ucfirst $_ } split /( )/, $2/ge; See if that helps any. It gives a syntax error. Maybe try this: Sorry, I forgot to backwack those /. My fault for not testing the code. I'll try again: s{(SCTN:\s*)(.+)

Re: Trying to open a word document on the shell

2003-08-23 Thread Sourabh Kumar Verma
Ya,same thing works in Unix/linux shell(typically).The variable PATH should contain the name of the directories(separated by a colon) in which shell will look for the given command. Regards, Sourabh On Sat, 23 Aug 2003, Michele Ouellet wrote: > You need to supply the full path of your docum

Re: Trying to open a word document on the shell

2003-08-23 Thread Michele Ouellet
You need to supply the full path of your document, even though it may be sitting in the "current directory". Good luck, Michèle. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to open a document as below > > #!/usr/local/bin/perl -w > > > use Tk; > > > my $mw = new Mai

Re: Read dir / sort

2003-08-23 Thread Rob Dixon
Bob Showalter wrote: > Paul Kraus wrote: > > WTF now its working with no changes to the program.. > > This is very frustrating. > > Is perl some how looking at the way the directory was last > > sorted in my > > Ms window even though its pulling it from a UNIX server? > > Perl isn't doing anyt

Re: a real newbie question!

2003-08-23 Thread Janek Schleicher
Robert Mark White wrote at Fri, 22 Aug 2003 23:37:48 -0600: > I see the "#!/usr/bin/perl -w" at the top of all programs. > I have read it tells perl where to run the program. No, it usually tells the (*nix) shell what program has to start - in this case /usr/bin/perl - and with what kind of argum

a real newbie question!

2003-08-23 Thread Robert Mark White
OK, now don't laugh so hard you fall off your chairs! I see the "#!/usr/bin/perl -w" at the top of all programs. I have read it tells perl where to run the program. This information I assume refers to a *nix box directory structure. I am using windows and using activeperl I think that it may mean

Re: Changing case of the first letter of words in string

2003-08-23 Thread zsdc
James Edward Gray II wrote: On Friday, August 22, 2003, at 05:06 PM, bis wrote: Thanks Gabriel - your suggested code s/(SCTN:\s*)(\w+)/$1\u$2\E/g; [...] Well, let's see if we can get a little closer: s/(SCTN:\s*)(.+)$/join '', $1, map { ucfirst $_ } split /( )/, $2/ge; See if that helps any.

Re: reinstall PERL

2003-08-23 Thread Ramprasad A Padmanabhan
Bulba007 wrote: How to repair Perl instalation on OBSD 3.3 stable? Not very familiar with OBSD. But I think the CPAN.pm module is the best way of upgrading perl. If you can get CPAN -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: reinstall PERL

2003-08-23 Thread zsdc
Bulba007 wrote: How to repair Perl instalation on OBSD 3.3 stable? Well, I guess it depends on, like... what's wrong with it? If you want to have a fresh install then get the source from CPAN or install the prebuilt binaries with whatever packaging system you are using. I don't know if my answe