On 04/25/2010 11:19 AM, C.DeRykus wrote:
You might want to check the Inline mailing list mentioned on CPAN.
Good idea. I'll try that.
Thanks.
Alex
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
Hi all,
I just tried to install Inline::Java from CPAN and it didn't work. The
install process just stopped after some time. When I tried it the second
time it stopped again at the same time.
There was no error message or anything, it just stopped. Here is the
output from CPAN when I ran it the
You wrote on 02/02/2010 05:29 PM:
i think we need to come up with a set of guidelines for this list. this
would be autoposted a few times a week and possibly to every new address
seen.
While I think this is a good idea in principle, in my opinion posting
this a few times a week to the list
Hi Jim,
Jim Green wrote on 01/17/2010 05:25 PM:
my $name = /usr/local/bin/perl;
(my $basename = $name) =~ s#.*/##; # Oops!
after substitution $basename is supposed to be
perl
but why it is not /local/bin/perl? will .*/ matches longest possible string?
Yes it will match the longest
Hi all,
I have a Perl program where I use eval to catch errors. As they are Java
errors (via Inline::Java) I want my program to continue and just log the
errors somewhere.
My problem with this is, that I use the eval within a loop and I also
use next in this loop to ignore some special cases.
Hi Ruprecht,
You wrote on 09/17/2009 10:31 AM:
syntax error at ./statistik.pl line 73, near } or
syntax error at ./statistik.pl line 82, near ) {
syntax error at ./statistik.pl line 86, near } or
Missing right curly or square bracket at ./statistik.pl line 100, at end
of line
Execution of
Hi,
You wrote on 07/08/2009 09:35 AM:
#!/usr/bin/perl -w
# Prog for demostrating file name concatenations.
$prefix=log;
$suffix=.gz;
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
# Time
$middle=sprintf %4d-%02d-%02d \n,$year+1900,$mon+1,$mday;
print My Date :
I wrote on 07/08/2009 09:50 AM:
#!/usr/bin/perl -w
# Prog for demostrating file name concatenations.
$prefix=log;
$suffix=.gz;
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
# Time
$middle=sprintf %4d-%02d-%02d \n,$year+1900,$mon+1,$mday;
print My Date : $middle
Hi again,
You wrote on 07/08/2009 10:14 AM:
But still a bit curios about this
if I do
$middle=`date +%F`;
I get result ( the new line prob),
New File name : log_2009-07-07
.gz
It there any way to do it using this (Using date command).
That's because the date output includes a
You wrote on 05/27/2009 10:50 AM:
I want to match one tr.../tr pair.
my code :
my $pattern = (tr (.|\\n)*\\\/tr);
...
but I got the whole matches instead of one tr.../tr pair each loop.
Do need to de-greedify it.
my $pattern = (tr (.|\\n)*?\\\/tr);
This should do the trick.
hth
Alex
You wrote on 05/19/2009 03:18 PM:
Simple question for the regEXperts out there...
I have a string that is always in the format: a.nn+x.y
a is always 5 chars
n can be 1 or 2 digits
x can be +/- (with sign), 1-4 digits
y is always positive (no sign), 1-4 digits
The best I can come
Chas. Owens wrote on 05/19/2009 04:02 PM:
($a,$n,$x,$y)) = $item =~ /(.{5})\.(\d\d?)[-+](\d{1,4})\.(\d{1,4})/;
snip
As of Perl 5.8 \d no longer matches [0-9]. It now matches any UNICODE
character that has the digit property. This includes characters such
as \x{1815} (MONGOLIAN DIGIT
You wrote on 05/13/2009 02:17 AM:
I need to test a scalier to see if its value is not two possibilities,
because this test is being done inside a while loop I can not use an elsif
statement without things getting ugly. I have tried it like this if
($scalier nq 'A') || ($scalier nq 'B') {
Hi,
You wrote on 03/30/2009 04:07 PM:
How can I retrieve data loaded into an array within a foreach block?
The array is defined outside the foreach block and is not the indexing
array of the foreach loop.
I ran your code and it works fine here.
I did however have the same problem as you at
itshardtogetone wrote on 02/09/2009 12:22 AM:
Can someone introduce me a free Perl editor that also can easily produce html
codes.
Thanks
If you are on Windows, try Notepad++[1].
It knows a lot of formats (including Perl and HTML), is easy to use (if
you don't want to learn emacs or vim) and
David Shere wrote on 02/18/2009 02:26 PM:
If you want an editor that will also allow you to put in breakpoints,
and step through code line by line while examining variables, you could
use Komodo. I haven't used it for a while but it was a very nice tool
when I was first learning.
...
It
You wrote on 02/03/2009 10:21 AM:
Hi,
Can you please point me to some good perl module tutorial for a beginner
level?
Have a look at the Perlmonks site:
http://perlmonks.org/?node=Tutorials#Modules-How-to-Create-Install-and-Use
hth
Alex
--
To unsubscribe, e-mail:
17 matches
Mail list logo