Re: GNU/Linux

2023-05-03 Thread Hal Wigoda
Perl and bash are different scripting languages.   They both have their strong points, and both have their weaknesses.  (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.)On May 3, 2023, at 12:06 AM, Claude Brown via beginners wrote: > Can d

Re: Is this bit of scrip a reasonable way to test something

2022-01-02 Thread Hal Wigoda
TOMTOWTDI (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Jan 2, 2022, at 9:29 PM, hput via beginners wrote: > > I was just coding in in ksh93 for simple script but tangled up with > way matching and regex work in ksh93. > > Finally

Re: strawberry installation TK fault

2020-11-28 Thread Hal Wigoda
Because you’re using windows. (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Nov 28, 2020, at 12:06 PM, stefano cerbioni wrote: > >  > hi guys anybody know why and how to resolve this issue ? > > C:\Users\stefano\Desktop\GuiAmu

Re: proper use of TEMPLATE

2019-04-15 Thread Hal Wigoda
Lazy. (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Apr 15, 2019, at 12:49 PM, Andy Bach wrote: > > > unsubscribe > > To unsub (or change your settings) you need to send a msg to the listserv > admin address, not the list itself.

Re: Perl 6

2015-12-15 Thread Hal Wigoda
One. On Tue, Dec 15, 2015 at 2:59 AM, Jitendra Barik wrote: > Hi All, > > Please let me know difference between Perl 5 and Perl 6? > > -- > Regards, > Jitendra > -- - Hal Wigoda Chicago

Re: bash to perl for cgi

2014-06-18 Thread Hal Wigoda
"Versions:\n=\n", > "perl: $]\n", > "CGI: $CGI::VERSION\n" > ); > > my $q = CGI::Vars(); > print "\nCGI Values:\n=\n"; > foreach my $k ( sort keys %$q ) { > print "$k [$q

Re: Append new line at end of non-quoted text

2014-05-23 Thread Hal Wigoda
> print pi * 2; > print "\n"; > > How do I get the new line on the same line of code? > > I could do my $my_pi_times_two = pi * 2; > print "$my_pi_times_two\n"; > > but that seems to be overkill. > > Thanks; > > Sherman > > > --

Re: Search and replace trouble with a variable

2014-02-01 Thread Hal Wigoda
What error? (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.) > On Feb 1, 2014, at 2:40 AM, Omega -1911 <1911...@gmail.com> wrote: > > Hello List: I am trying to go through a folder of php scripts to add a > database prefix to lines that have

Re: mv Is Not Working the Same Way Under System as Under a Shell.

2014-01-30 Thread Hal Wigoda
Is the directory you are moving to writable? Sent from my iPad > On Jan 29, 2014, at 4:10 PM, "Martin G. McCormick" > wrote: > >I have a perl script that I run as root which needs to > move a file from where it is to another directory. > >I keep getting the "Usage" help message and a

Re: series of numbers to range notation

2014-01-07 Thread Hal Wigoda
4,495,496 > > there are two ranges in there: 349-396, 425-496 > > any hints as to how to write a perl code to represent the series of numbers > as a range? > > thank you. > Rajeev -- - Hal Wigoda Chicago -- To unsubscribe, e-mail: beginners-unsubscr...@pe

Re: grab pattern from start and end block

2013-07-12 Thread Hal Wigoda
april > address:123 street > end > start > name:babit > dob:13 april > address:3 street > end > start > name:ganesh > dob:1 april > address:23 street > end > > > -- > Don't stop where the ink does. > Shawn > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- - Chicago Hal Wigoda

Re: Does perl hava free edition for AIX, Solaris?

2013-03-18 Thread Hal Wigoda
Any version of Sun Solaris should already come with the current Perl. On Mon, Mar 18, 2013 at 2:08 PM, rjc wrote: > On Mon, Mar 18, 2013 at 06:59:48PM GMT, Hal Wigoda wrote: >> It should come with Perl. > > Hi Hal, > > I don't think I'm following. What sho

Re: Does perl hava free edition for AIX, Solaris?

2013-03-18 Thread Hal Wigoda
http://learn.perl.org/ > [3] http://learn.perl.org/faq/ > > Best regards, > > Raf > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > -- - Chi

Re: .profile not being read

2013-02-17 Thread Hal Wigoda
h...@perl.org >> http://learn.perl.org/ >> >> > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > -- - Chicago Hal Wigoda -- To un

Re: .profile not being read

2013-02-14 Thread Hal Wigoda
responsible for reading and executing your > .profile. > > > > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > -- - Chicago Hal Wigoda -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Hi

2013-01-11 Thread Hal Wigoda
> -- >> A.Bhanuchaitanya >> >> >> >> -- >> To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional >> commands, e-mail: beginners-h...@perl.org http://learn.perl.org/ >> >> >> >> >> -- >> To unsubscribe, e-ma

Re: Problem of general running of simple perl program.

2012-11-04 Thread Hal Wigoda
and how? >> >> On Sun, Nov 4, 2012 at 10:10 PM, Feng He wrote: >>> >>> >You have lost the module named as Email::MIME. >>> > > > > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginn

Re: Problem of general running of simple perl program.

2012-11-04 Thread Hal Wigoda
gt; > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > -- - Chicago Hal Wigoda -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Learning CPAN

2012-10-04 Thread Hal Wigoda
ers-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > -- - Chicago Hal Wigoda -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: many people using same file

2012-08-28 Thread Hal Wigoda
Yes. But there are limits of infinity. --- On Aug 28, 2012, at 10:25 PM, Rajeev Prasad wrote: > can multiple users run the same script, at same time, which opens couple of > files (file handles) for "reading" only? I would assume yes, but I want to > know for sure. > > thx in advance.

Re: system command not working in different versions

2012-08-08 Thread Hal Wigoda
which I need to call another perl script. >> In one linux machine it is working and in the other machine it is not >> working. >> >> Ex:- system("./submit_now.pl $"); >> >> can you please, tell me what is the reason? >> and as well solutio

Re: case statement in perl

2012-08-01 Thread Hal Wigoda
, it's a strong indicator to pay > attention. > > -- > Chris Nehren | Coder, Sysadmin, Masochist > Shadowcat Systems Ltd. | http://shadowcat.co.uk/ -- - Chicago Hal Wigoda -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: case statement in perl

2012-07-31 Thread Hal Wigoda
Use the switch/case combination. On Tue, Jul 31, 2012 at 11:41 PM, Paul.G wrote: > Hi All > > > Does perl have a case statement or an equivalent? > > > Cheers > > Paul -- ----- Chicago Hal Wigoda -- To unsubscribe, e-mail: beginners-unsubscr...@perl.

Re: translate a file

2012-02-17 Thread Hal Wigoda
> > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > -- - Chicago Hal Wigoda -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: File::Find script questions

2011-07-18 Thread Hal Wigoda
an't close file"; >                close $mail_fh || die "Can't close mail_fh"; >                unlink ($File::Find::name); >        } > } > > > > In case anyone's interested, here's the shell script it replaces: >

Re: book on perl

2007-07-02 Thread Hal Wigoda
not anymore. On Jul 2, 2007, at 3:55 AM, Prabu Ayyappan wrote: Hi, There is some good stuffs in the below link. http://www.unix.org.ua/orelly/ Thanks, Prabu "Garg, Mayank IN BOM SISL" <[EMAIL PROTECTED]> wrote: Hi all, Can some one suggest me a good book on perl (basics and adva

Re: printf

2007-01-18 Thread Hal Wigoda
for one thing, you need to add "\n" for newline. On Jan 18, 2007, at 7:12 AM, Beginner wrote: Hi all, Sorry I am sure this is a lame question. I want to print out some column (with heading) and I want them evenly spaced. I know this is a printf but the format eludes me. printf("%c12", $var)

Re: How to make a perl program to an exe file

2006-11-21 Thread Hal Wigoda
you may be missing the gcc compiler or not have the execute permission. On Nov 22, 2006, at 12:08 AM, Dharshana Eswaran wrote: Hi Rajeev, I tried using Perlcc, but the following error occurs. bash$ perlcc zzz.pl Can't exec "gcc": No such file or directory at /XXX/xxx/perl/bin/ perlcc line

Re: code needed

2006-09-04 Thread Hal Wigoda
the code on page 3 looks like it might be very helpful. On Sep 4, 2006, at 7:07 AM, Eric Krause wrote: Check out this web page, http://www.developer.com/lang/other/ article.php/3454041. It has examples that return link and tags using WWW::Mechanize, which is a subset of LWP. -Eric Hal

Re: code needed

2006-09-03 Thread Hal Wigoda
i have tried that one, also. i will do furthur research and let you know On Sep 3, 2006, at 8:21 PM, Tom Phoenix wrote: On 9/3/06, Hal Wigoda <[EMAIL PROTECTED]> wrote: HTML-LinkExtractor-0.13 libwww-perl-5.805 linkcheck-1.05 HTML-Parser-3.55 HTML-SimpleLinkExtor-1.13 HTML-Tagse

Re: code needed

2006-09-03 Thread Hal Wigoda
sure i have - HTML-LinkExtractor-0.13 libwww-perl-5.805 linkcheck-1.05 HTML-Parser-3.55 HTML-SimpleLinkExtor-1.13 HTML-Tagset-3.10 have failed me. On Sep 3, 2006, at 7:21 PM, Tom Phoenix wrote: On 9/3/06, Hal Wigoda <[EMAIL PROTECTED]> wrote: anyone have any code that will retu

code needed

2006-09-03 Thread Hal Wigoda
anyone have any code that will return the links and tags from web document downloaded using LWP? hal chicago -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: help with awk command in perl

2006-08-29 Thread Hal Wigoda
you have to execute the awk statement on the operating system level with the system, that is: system ("$cmd1"); On Aug 29, 2006, at 10:40 AM, Sayed, Irfan ((Irfan)) wrote: Hi All, I have a following script in perl in which i am using awk command but it is not getting executed properly.

Re: File opeartions help

2006-07-27 Thread Hal Wigoda
why do you keep on asking the same question? On Jul 27, 2006, at 9:47 AM, Sayed, Irfan ((Irfan)) wrote: Hi, I am executing following code. i need to send the output of system($cmd); command to the file . how do i do that plz help Regards Irfan. #/usr/atria/bin/Perl -w us

Re: one small question

2006-07-26 Thread Hal Wigoda
use the perl variable: my $os = $^O; print "Running in: $os\n"; On Jul 27, 2006, at 1:12 AM, anand kumar wrote: Hi all, Can any one say a command or procedure to find out on which OS/ Platform does our current perl script is running. Thanks in advance for the help Reards Anand Kuma

need script to get tags and links pairs from web pages

2006-07-25 Thread Hal Wigoda
I need a perl script to get tags and corresponding links (in pairs) from a web page. Anyone steer me in the right way? hal chicago -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: array help

2006-07-20 Thread Hal Wigoda
#!/usr/bin/perl my @test = ("/test" , "/playground"); print @test; print "\n"; print @test[0],"\n"; print @test[1],"\n"; you must print each array item with a \n On Jul 20, 2006, at 9:33 AM, Sayed, Irfan ((Irfan)) wrote: Hi, I have written following line. but i am getting error my @test =

Re: array help

2006-07-20 Thread Hal Wigoda
you have to add a "\n" between the 2 elements in the array. On Jul 20, 2006, at 9:51 AM, Sayed, Irfan ((Irfan)) wrote: Hi, I have written following line. but i am getting error my @test = ("/test" , "/playground"); print @test; i am getting output as follows /test/playground i need the o

Re: install cpan mini error

2006-07-02 Thread Hal Wigoda
i googled the error and a solution indicated to load the osx developer tools. so i did and that worked. On Jul 2, 2006, at 9:22 AM, Tom Phoenix wrote: On 7/1/06, Hal Wigoda <[EMAIL PROTECTED]> wrote: make: *** No rule to make target `/System/Library/Perl/5.8.6/darwin- thread-multi-

install cpan mini error

2006-07-01 Thread Hal Wigoda
/darwin- thread-multi-2level/CORE/config.h', needed by `Makefile'. Stop. $ find /System/Library/Perl -name config.h /System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE/config.h the file is in 5.8.1 not 5.8.6. do i have to update my library and how? hal chicago -- To unsu

Re: vlookup by perl instead of excel

2006-02-02 Thread Hal
t description why we won't sell this to customer A under any circumstances etc. bash$ perldoc perldsc has more of the details you require. Other things to do is search CPAN for Spreadsheet modules to read and write in .xls format if you require this, or alternatively research how t

Re: See the structure of what I am pulling via DBI

2005-11-07 Thread Hal Ashburner
On Mon, 2005-11-07 at 10:56 -0500, Robert Hicks wrote: > If I am pulling data out with a $sth->fetchrow_arrayref, how do I see the > structure of what is coming back? I need to change the description on some > of the data coming back out (like changing a "C" to "Closed") but I am not > sure how to

Re: perl newbie

2002-06-04 Thread Hal Wigoda
Cut off the fat. > > Unix Sys administrator, versed in most shells, ksh, bourne, bash etc. > > What is the best way for me to lean perl? > > Phil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

reading dbf files

2002-02-20 Thread Hal Johnson
Hello, I was wondering how to read in a dbf file. I understand how to read ..csv files, but I would like to be able to not have to convert the many dbf's to csv's. Thanks, Hal __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Oly

Perl and tk, where and what?

2001-12-12 Thread Hal Johnson
to work. I don't have acces to Visual C++, but I've heard that there are some freeware compilers and I just can't find them. I'd be gratefull for any information on installation or use problems you've encountered, etc. with tk and perl. Thanks, Hal Johnson __

file date checking

2001-08-15 Thread Hal Wigoda
i need to remove files that are more than 30 days old. I know the foreach loop part but my if statement is not working. See below. #!/usr/bin/perl use File::stat; use File::Find; $dirname="/opt/ilbackup/status"; opendir(DIR, $dirname) or die "can't opendir $dirname: $!"; while ( defined

Pipe to a command

2001-08-02 Thread Hal Wigoda
How do you run a command on a unix box from a perl script and capture the results?? Like a grep command?? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

date verification

2001-07-22 Thread Hal Wigoda
I nned a module to verify dates entered in an html cgi form. Any clues?? hal -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Web directory page

2001-07-06 Thread Hal Wigoda
Does anyone have the code to produce a list of files in a directory??

module install

2001-06-29 Thread Hal Wigoda
I'm trying to install a module as root from cpan and it is looking for my ncftp program and it is not found. What do i do now?? I'm using mandrake 7.2 on my linux server.

module install

2001-06-29 Thread Hal Wigoda
When you install a perl module from CPAN should you do it as root???