Hello,
I want to use javascript in a perl program that creates a html with a bunch of links that connect to dbi and gets the page content for those links. I know perl part, but the javascript part i lack.
Thank you in advance,
Cristian
how can i extract a root using a pattern match ?
url type :
<h2 class=r><a href=\"http://www.something.com/"
i use this :
<h2 class=r><a href=\"http:\/\/(.+?)\/\"/
but it grabs alot of things that i do not want.
for example : <h2 class=r><a...
Hello guys,
* I get this error when parsing the following lines :
start clusterNo=1
value chunkNo=3
....................
* the code :
while ($line <= $#$_lines) {
chomp $$_lines[$line];
if ($$_lines[$line] =~ /start\s(\S*)=(\d*)/) {
$clusterNo = $2...
I'm trying to learn how does CGI::Application::GDGraph works, but there isn't to much free and fast documentation out there, many just cut and paste from the same source : CPAN, and examples are not self explanatory when it comes to relate them with other components that use them or get used by...
This is really bugging me for a while . Here is what i want to do : I made a cronjob to run at each minute a script. That script logs on diferent machines and there it starts another script and return to my main script a result. I do that using c3. When i ran the main script manually it works...
Do eny of you guys have an explicit example of a small application that does this : http://www.jonblog.uklinux.net/www/presentation/img13.html
I don't have too much time to go into perl graphics books, and i learn faster from examples, i wanted to do something like in the link, but that example...
How can i emulate this functionality without printing in print_1 along with piping (print "$a|$b") and then using a pattern match to extract the results ? :
Obs : i don't mind piping the result into on string , i just don't want to put trash in STDIN or other file, i just need the result...
Hello again,
What is the most efficient way to open a file through network ? Considering that i'm writting a cron that from 10 to 10 minutes logs on several machines [1-10] and gets some log
file. ( like 16-265 log files per machine )
Thank you in advance,
Cristian
I've tryed to escape the first "*" but it does not work either("\*/1 * * ....)
....
my $cronjobPattern = "*/1 * * * * /usr/bin/perl \$pathHome/test.pl 10";
...
if ($cronjob =~ m/$cronjobPattern/g) {
...
}
...
ERROR : Quantifier follows nothing in regex; marked by <-- HERE in m/*...
struct grades = {
math => '@';
};
$grades->{math} = (1,2,3); # why can't i do that ? How can this be done ?
my @array = $grades->{math}; # why is this not taking grades->math elements and copies them into array ? How can this be done ?
Than you in advance,
CL
So i'm trying to make a simple print, then to unget all the x last chars or last output from the standard window and i do not know how.Eny suggestions will be appreciated.
# example :
print "Hello world"; # output : Hello world
# print unget(5); or a method similiar this is just a suggestion...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.