number of starting tabs2037 (8/16/2012 8:07:03 PM) I want to count the number of staring tabs of a string. Is there any better
way than
my $var = ' foo ';
(my $tabs = $var) =~s/^(\t*).*$/$1/; $tabs = length $tabs;
print $tabs; # 2
... nospam.gravitalsun(70)
Pause until external program exits with success?1048 (8/11/2012 5:18:40 AM) In running an external process I would like to continue (or terminate) a
script depending on the output of the external process.
For example, if the process is to scale a very large image with
ImageMagic... tuxedo(101)
Click in a radio button233 (8/7/2012 1:00:55 PM) Hi,
I'm a newbee in Perl, and I'd like know if I can click specific radio
button in a web page with Perl.
This page haves 30 radio buttons. This page is made in Javascript,
and I can't see tags in source c... contracer11(156)
Windows: Rakudo-Star Perl6 now available as *.msi233 (8/13/2012 12:24:43 PM) Hello everybody,
I am a Windows user and I always wanted to run Rakudo-Star Perl 6, but
I couldn't get the installation / compile from source to run on my
Windows 7 box (32 bits). I grew more and more frus... dilbert1999(18)
strange warning when open file825 (8/15/2012 8:56:35 AM) Do you have any idea how to fix the warning
Name "main::FH" used only once: possible typo at C:\work\Files\test.pl
at the following code ?
#!/usr/bin/perl
use strict;
use warnings;
my $output_dir ... nospam.gravitalsun(70)
Regx explanation please942 (7/26/2012 1:17:05 PM) Yesterday I needed to be able to print large numbers with commas. ie
1,234,567
Google turned up the following:
1 while s/^(-?\d+)(\d{3})/$1,$2/;
Two questions arise from this.
1) I have not seen ... dave7665(110)
"is-numeric" check?2761 (7/29/2012 8:16:17 AM) Is there a simple way to check if a value is numeric in Perl?
FWIW, (($x + 0) eq $x) doesn't fit, as it returns false should
$x contain any leading zeros or whitespace.
Apparently, there /is/ such a ... oneingray(279)
dynamic content with PDF::API2239 (8/8/2012 8:27:58 PM) I've been using PDF::API2 for years without a problem of any kind, but now have a new requirement -- text wrapping. Here's an example:
#from a hashref from a database, name could be NULL
my $name = $hashref... cartercc(423)
I killed my own source.48230 (7/28/2012 10:51:34 AM) Net::FTP=GLOB(0x837217c)<<< 226 Transfer complete
.. .. logs index.html wsb6121022001 energy green2.m4v Video 151.wmv
false.wmv vids images zen rev1.html luther1.html lh_1.html lh_17.html
lh_18.html lh_19.... cal819(188)
Using variable in replacement expression529 (8/8/2012 9:25:27 PM) I'm trying to do a global replace with a varying replacement string which includes a counter to count the replacements.
The idea is this (replacing all "xy" strings):
Source: "ab xy cd xy ef xy gh"
Re... rob9778(6)