I have a path C:/bla/bla1/bla2/bla3
I need to get the data after the last / thus in this case bla3
Hi -
I have a third party that posts information to a mysql database on my server via a CGI script which is written in PERL -
If the script can not connect to the database it sends an alert ...
I have a list reference and I normally obtain the values like:
$stuff = $LIST->[0];
or
$stuff = $LIST->name();
But in the list reference I have, it's just a list of numbers and I w...
How to use JSON data interchange format in perl ? Could someone give me some example to use it. Thanks!
I am getting Undefined subroutine &main::writeData called at mymountaincollege.cgi line 49.
http://bit.ly/2cS2hb
Thoughts on why and how to fix it?
I have a file that I want to transpose. I am new to perl, but since this is such a large file I need to run it in a unix environment. I have attached to two files. One is the input file and...
hi
i have a input file with list of urls.
i want to convert it to a output file
such that the first column is the url, followed by two tabs then the second column (static) thena tab an...
I have this line in a file
284079:15:03:19
where 284079 is id
15 is hr
03 is min
19 is sec
i need to compare the hr and min with the current hr and min . and throw an error if they ...
Hi, I have a bunch of email addresses in a row:
<name@domain1> <name2@domain2> <name3@domain3>
I'll be honest, I am very bad @ reg exs, how can I get the first address: name@domain1? a...
Help,
Need to get the email address from a string. Now, I might get an address ass
user <email@domain.com> or just
email@domain.com
How do I get tihs?
Thanks
For the code I have, I am trying to grab the URL for links named "Unsubscribe" and "Privacy Policy"
(1) The Perl code that I have for Unsubscribe is:
a=`perl -ne 'if (m!a href="(.*?)".*Uns...
How can I group with Perl:
Data:
a b
b f
x y
10 11
b g
f 3
11 6
Result:
Gr.1: a, b, f, g, 3
Gr.2: x, y
Gr.3: 6, 10, 11
Would like to get the next day if the day in format YYYYMMDD is given. For example,
Given date: 20080228, how to get the next day 20080229 in Perl one liner if possible?
Given date: 2009022...
Would like to test if a string consists of all numbers. If so, print the number, otherwise do nothing. For example, str=0123456789, print str, but for str=0123$456789, do nothing.
Are there any reasons I would want to use perl over .net C# to perform my parsing? (maybe speed? any disadvantage of having asp.net running over a perl script?)
I mostly do regular expression...
I tried this but its not right, I want to ensure everything wether it be hour, minute, or day always has two digits
so if its 5 for anything i want it to be 05
my ($sec,$min,$hour,$mday,...
I would like to pass a variable from a web page to a query in a perl script. when i try to pass the variable the blank. I have attached the code and would appreicate any help. thank you for...
I need to match string which is like this
****ERROR: can't add symbol=C
where C is variable
i want to have a condition like this:
if (!$username || !$password || !$servername){
print 'FAILED';
}
but doesnt seem to work please advice
my @list = ('TYPEX', 'ENDRZ', 'FASCQ', 'LEVELA');
from a text file how would I find the number of apperances of each?
Would you just go line by line in the file and increment if present on e...
i need to read word documents with certain headings. Grab these headings and the text under each heading from the word document and insert in mysql database without loosing the word format usi...
I have a perl script thats running as a cgi... in the script it calls a template (Using Text::Template module) for displaying the html.
I tried running a php as my template, but it doesn't ...
I'm trying to determine via Apache2::Cookie if a cookie is session-only or permanent with an expiration in the future.
I'm trying $cookie->expires as in the docs for the module cited. Ho...
I have the hash below, I have tried some things and it doesn't seem to be working.
I want to randomly select $packages{'ad_package_id'}
Anyone shed some light?
Thank you.
Struggling with the following.
I have an HTML page in which I enter a ISBN number, e.g. 9029160020
I run a script from that page that updates a column in a Mysql table. The column has been ...