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...
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
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...
I have 47 entries of text in an SQL database, in Perl, I want to print out the last 15 of these (this is simple, I manage to do this), but I also want to print out how many pages these 47 entries would "occupy", if each page displays 15 entries.
I could do something like this:
$entries = 47...
Hi, I have decided to pick up object-oriented perl programming, and I feel fascinated by packages.
Although, when I run the script below, I only get:
Can't locate object method "new" via package "Packet" at /Users/jas/Desktop/oop.pl line 9, <STDIN> line 1.
I can't make out...
I have seen web pages setting two or more cookies at a time, how can I accomplish to do this?
my $cookie = $query->cookie(-name=>'name',
-value=>'value',
-expires=>'+3d',
-domain=>'domain.com');
print $query->header(-cookie=>$cookie);
The code above does not seem to allow this?
Thanks in...
Hi!
I am currently trying to insert a table name from an scalar into an sql prepare, is this possible in some way? (I am trying to make a multi-user blogging system)
The code I am trying to use looks like this:
$sth = $dbh->prepare('update ? set header = ? where id = ?');
$execute_result =...
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.