Turning lines of a file into array?112 (5/4/2013 4:58:37 AM) comp.lang.perl.misc Sorry for the basic question but how can I best turn each line of a file
into an array?
I have a list filenames (just output of 'ls') in a separate text file, each
on a new line:
DSC07557.JPG
DSC07532.... Tuxedo
Based on its src value, find an image and assign an ID?93 (4/20/2013 9:21:30 PM) comp.lang.javascript Using a same header image, e.g. that is generated
and cannot be changed after it's been initially loaded into a page view,
can an ID be assigned later in the document flow?
Initially there is no ID at a... Tuxedo
Delete onload event handler initiated at img tag level?25 (4/19/2013 3:37:44 PM) comp.lang.javascript Is there a way to reliably remove an onload event that has been initiated
at the img tag level?
For example, the following would repeat the replacement indefinitely as the
image is replacing itself with ... Tuxedo
MIME::Lite alternative?216 (2/3/2013 2:06:43 PM) comp.lang.perl.misc Hello,
While looking into alternative modules to process a feedback form,
optionally attach a file, a message with HTML and integrating the file as a
Base64 attachment, I'm considering MIME::Lite. Perhap... Tuxedo
Clickable link conversion regex?040 (11/30/2012 9:51:33 PM) comp.lang.perl.misc Can anyone suggest a solution to enclose bare urls with href tags?
open(my $fh, 'urls.txt') or die $!;
while (my $line = ) {
$line =~ s[...] # match http or https instances
[...]s; # rep... Tuxedo
UTF-8 read & print?729 (11/25/2012 6:06:15 PM) comp.lang.perl.misc In reading and printing a file that may contain UTF-8 characters and print
it into a web browser, my first attempt is:
#!/usr/bin/perl -w
use warnings;
use strict;
use CGI qw(:standard);
print "Con... Tuxedo
Net::IDN::Encode Build procedure in external dir.?230 (11/11/2012 6:25:29 PM) comp.lang.perl.misc The Net::IDN::Encode module converts IDN domains into ASCII and vice versa:
http://search.cpan.org/~cfaerber/Net-IDN-Encode-2.003/lib/Net/IDN/Encode.pm
The documented build procedure is:
perl Build.PL
../... Tuxedo
Server response validation?719 (11/10/2012 12:20:10 AM) comp.lang.perl.misc This may be a vague question but which perl network tools or procedures are
good to determine if a hostname or IP exist and that is suitable for a cgi
request that allows user-input of any URL string?
An... Tuxedo
Simple array reference question827 (9/12/2012 10:09:25 AM) comp.lang.javascript I have two simply arrays, for example:
var birds = new Array('fowl', 'penguin', 'sparrow');
var fish = new Array('crayfish', 'jellyfish')
When accessing a page including a parameter, such as 'page.html?f... tuxedo(96)
Copy array into input read process?325 (11/1/2012 8:43:53 PM) comp.lang.perl.misc The below procedure, using lynx, simply dumps the source of a URL when
calling it with a single argument and prints each line:
open(my $fh, '-|',
'/usr/bin/lynx','-source','-nonumbers','-cache=0','-nolis... tuxedo(96)
Server response validation?719 (11/10/2012 12:20:10 AM) comp.lang.perl.misc This may be a vague question but which perl network tools or procedures are
good to determine if a hostname or IP exist and that is suitable for a cgi
request that allows user-input of any URL string?
An... tuxedo(96)
Net::IDN::Encode Build procedure in external dir.?230 (11/11/2012 6:25:29 PM) comp.lang.perl.misc The Net::IDN::Encode module converts IDN domains into ASCII and vice versa:
http://search.cpan.org/~cfaerber/Net-IDN-Encode-2.003/lib/Net/IDN/Encode.pm
The documented build procedure is:
perl Build.PL
../... tuxedo(96)
UTF-8 read & print?729 (11/25/2012 6:06:15 PM) comp.lang.perl.misc In reading and printing a file that may contain UTF-8 characters and print
it into a web browser, my first attempt is:
#!/usr/bin/perl -w
use warnings;
use strict;
use CGI qw(:standard);
print "Con... tuxedo(96)
MIME::Lite alternative?216 (2/3/2013 2:06:43 PM) comp.lang.perl.misc Hello,
While looking into alternative modules to process a feedback form,
optionally attach a file, a message with HTML and integrating the file as a
Base64 attachment, I'm considering MIME::Lite. Perhap... tuxedo(96)
Turning lines of a file into array?112 (5/4/2013 4:58:37 AM) comp.lang.perl.misc Sorry for the basic question but how can I best turn each line of a file
into an array?
I have a list filenames (just output of 'ls') in a separate text file, each
on a new line:
DSC07557.JPG
DSC07532.... tuxedo(96)