Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > Hi John, Hello, > Thanks as usual ... what is UUOC? http://www.justfuckinggoogleit.com/search?query=UUOC > Am getting more intrigue and confused with your short-cuts coding > but it is fun though ... > > These two lines here, are you creating a hash? No.

Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread Ken Foskey
On Mon, 2006-08-14 at 09:13 +1200, [EMAIL PROTECTED] wrote: > have num_of_developers=`cat /etc/passwd | grep developer | wc -l` which gives > the number of developer logins. So how do I get it to do the same in Perl? I untested... you get to debug it. use strict; my $passwd; my $line; my $num_

Re: extracting NAME and DESCRIPTION sections from pod text file

2006-08-13 Thread Ken Foskey
On Sun, 2006-08-13 at 10:48 -0500, Mumia W. wrote: > On 08/13/2006 08:36 AM, Ken Perl wrote: > > what's correct regular expression on extracting only NAME and > > DESCRIPTION section from pod text file? > > I have tried this, but failed! > > > > perl -e '$c=`pod2text /data/WebGUI/lib/WebGUI/User.p

Re: perl's deamon interface

2006-08-13 Thread Ken Foskey
On Sun, 2006-08-13 at 21:04 +0200, Dalibor Straka wrote: > Hi, > > I'm writing a perl daemon with telnet interface. But here comes the > crunch time. I need to use line breaks. Is there any better > auto-detect way than manualy switching to > $/ = $CRLF; > in every telnet session? The truth i

Re: How to emulate set -x on Perl ...

2006-08-13 Thread Ken Foskey
On Mon, 2006-08-14 at 09:45 +1200, [EMAIL PROTECTED] wrote: > Hi all, > > In UNIX, we run set -x as some kind of DEBUG mode, how do we do the same in > Perl? perl -d it is a debugger so it is even better than -x in shell. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > Hi John, Hello, > Thanks for your prompt response as usual ... > > Not exactly need File::Spec and File::Basename per se, I really need to > grab some of the environment variables that are set when the Perl script > is run or in the case of the .BAT file, when the batc

How to emulate set -x on Perl ...

2006-08-13 Thread benbart
Hi all, In UNIX, we run set -x as some kind of DEBUG mode, how do we do the same in Perl? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread benbart
Hi John, Thanks for your prompt response as usual ... Not exactly need File::Spec and File::Basename per se, I really need to grab some of the environment variables that are set when the Perl script is run or in the case of the .BAT file, when the batch file is run. For example, I want to know w

Re: extracting NAME and DESCRIPTION sections from pod text file

2006-08-13 Thread Dr.Ruud
Mumia W. schreef: > Ken: >> what's correct regular expression on extracting only NAME and >> DESCRIPTION section from pod text file? >> I have tried this, but failed! >> >> perl -e '$c=`pod2text /data/WebGUI/lib/WebGUI/User.pm`;$c =~ >> s/(NAME.*)SYNOPSIS/$1/;print $c' > > foreach $_ (`pod2text /u

perl's deamon interface

2006-08-13 Thread Dalibor Straka
Hi, I'm writing a perl daemon with telnet interface. But here comes the crunch time. I need to use line breaks. Is there any better auto-detect way than manualy switching to $/ = $CRLF; in every telnet session? The truth is, that i(they) have a badly behaved php skript simulating a telnet ses

Re: compiling PERL programs

2006-08-13 Thread matt
i dont need to complie program you create in perl code they are run much like the same as a php or shell script just run then like perl ./perlfile.pl unless you are talking about allowing people to run the perl screipt but not see the source, in which case i have never herd of this before.

Re: extracting NAME and DESCRIPTION sections from pod text file

2006-08-13 Thread Mumia W.
On 08/13/2006 08:36 AM, Ken Perl wrote: what's correct regular expression on extracting only NAME and DESCRIPTION section from pod text file? I have tried this, but failed! perl -e '$c=`pod2text /data/WebGUI/lib/WebGUI/User.pm`;$c =~ s/(NAME.*)SYNOPSIS/$1/;print $c' foreach $_ (`pod2text /usr

Re: compiling PERL programs

2006-08-13 Thread John W. Krahn
hOURS wrote: > Hi all, Hello, > I'd be interested in compiling programs I write in PERL. This is > possible, right? I see occasional mention of such here and there > but can't seem to find information on how it might be done. I > assume one would need appropriate software, right, a compiler? >

compiling PERL programs

2006-08-13 Thread hOURS
Hi all, I'd be interested in compiling programs I write in PERL. This is possible, right? I see occasional mention of such here and there but can't seem to find information on how it might be done. I assume one would need appropriate software, right, a compiler? Is such available open source

Re: How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > Hi all, Hello, > I currently have a MS-DOS batch file that am trying to convert to a Perl > script. > I have something like this in the .BAT file where variables are "set" based on > some parsing of a variable passed as a command line argument whenever the .BAT > file

extracting NAME and DESCRIPTION sections from pod text file

2006-08-13 Thread Ken Perl
what's correct regular expression on extracting only NAME and DESCRIPTION section from pod text file? I have tried this, but failed! perl -e '$c=`pod2text /data/WebGUI/lib/WebGUI/User.pm`;$c =~ s/(NAME.*)SYNOPSIS/$1/;print $c' -- perl -e 'print unpack(u,"62V5N\"FME;G\!Ehttp://learn.perl.org/>

How to emulate this set or how to assign the result of running system "command" to a variable

2006-08-13 Thread benbart
Hi all, I currently have a MS-DOS batch file that am trying to convert to a Perl script. I have something like this in the .BAT file where variables are "set" based on some parsing of a variable passed as a command line argument whenever the .BAT file is executed by the application. The command l