Hi!
I'm currently working on some kind of blogging technology for my website, and I'm having problems with a multidimensional data-structure used in a function to parse templates and output pages.
All data in the program is stored in an anonymous hash "bound" to a scalar ( my $self = {}; (yes...
Hi,
it seems like most browsers won't keep a picture set with an id selector to the lower right corner of the screen (absolute positioning, bottom and right is set to 0px) in place if the page has a scrollbar. When I scroll, the picture "sticks" where it was placed on load.
Is there a way to...
What does the return false do? Not much, in my opinion, IE has a lack of support to loading functions from another IFRAME, as I tried, tonight.
Now, I'm really greatful, and I'm gonna get drunk, so, good night.
End of conversation.
Thanks for a swift reply!
Well, it works, but it clears all fields before the form is sent, wich is a bit bad. a one second time delay would probarbly fix that. The downside, I really don't know that much Javascrip.
How I send the form without reloading? In the form tag i put target="name" to...
I have created a perl/cgi script that loads into an iframe on my webpage, displaying text taken from a mysql database. As the form for input of data into the database is on the page that holds the iframe, the text sticks in the fields after the submit button is pressed.
If anyone would help me...
Hi,
I am trying to run some lines of code, if a scalar is an float, and not if it is an integer.
Currently, I am trying to do this:
if ( $pages =~ /./ ) {
# do something here
}
But this does not work, any suggestions for a fix?
Thanks in advance!
Best Regards,
Jollekox
One line of output? Then that should be getline?
I would have dropped the sleep(300) on the example I posted, and just turned the timeout up really high, so it would just listen until it gets something.
It might be an ugly fix, but, well well....
Well, I'm spamming away here, but anyway:
$x = 0;
while ($x == 1) {
@lines = $instant->getlines([Timeout => 180],
[All => 3]);
#something that stores @lines somewhere.
sleep(300);
}
This might get you started, I don't know which of...
And I don't think you should go for an infinite loop as it will possibly hog the system a lot. I'd go for reading maybe a few thousand lines, then storing them.
Is it possible to run the Perl script as a cron job (assuming you work on some kind of unix), if the time intervals between each info...
You might want to check out the documentation for Net::Telnet on CPAN: http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm
The dump_log, get, get_line and get_lines methods on the page referred to above might work, I think. I have only been playing around with Net::FTP
Good Luck!
Well, I am running Mac OS X, and it works great here, but on my webhost, the output looks like the first example I posted.
But I have had some small problems with Perl on that host before,
so it is probably just that (like, I tried to do math on 2 different macs running two different versions...
I have a little Perl script that goes something like this:
#!/usr/bin/perl -w
$lkd = "line one\nline two\nline three";
$lkd =~ s/\n/<br>/g;
print "$lkd";
And it outputs something like this:
line one
<br>line two
<br>line tree
<br>
I thought s/\n/<br>/g; would swap all the newlines with...
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.