473,326 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Perl Titles syntax

Hello everyone,

For the 3th time again my hoster has made changes to MYSQL.

<Titles> among other things need to be adapted. I'm trying to understand the syntax correctly so I can apply changes..

$mech->title( ) eq 'phpMyAdmin') is quite easy to comprehend but the next two can anyone help me to what is the difference?

$mech->title =~ /^phpMyAdmin/)

$mech->title =~ 'phpMyAdmin')

Thanks,

Vincent
Sep 18 '07 #1
6 1281
numberwhun
3,509 Expert Mod 2GB
Hello everyone,

For the 3th time again my hoster has made changes to MYSQL.

<Titles> among other things need to be adapted. I'm trying to understand the syntax correctly so I can apply changes..

$mech->title( ) eq 'phpMyAdmin') is quite easy to comprehend but the next two can anyone help me to what is the difference?

$mech->title =~ /^phpMyAdmin/)

$mech->title =~ 'phpMyAdmin')

Thanks,

Vincent
I have removed your link to site you had via your name. On TSDN, we do not allow signatures or links for advertisement. This is your first warning.

Regards,

Jeff
Sep 19 '07 #2
This link had absolutely no value as advertisement as they are set to 'no-follow' for bots.

The purpose of this message was not to 'plant' a link but legitimate question.

Vince
Sep 19 '07 #3
numberwhun
3,509 Expert Mod 2GB
This link had absolutely no value as advertisement as they are set to 'no-follow' for bots.

The purpose of this message was not to 'plant' a link but legitimate question.

Vince
I understand the point you are making, but the policy of TSDN is no signatures and no links other than those needed for postings.

The link you provided was religeous in nature and while I am thick skinned and not easily offended, I cannot speak for the next person who reads your thread. That is why I removed it.

Regards,

Jeff
Sep 19 '07 #4
KevinADC
4,059 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. $mech->title =~ /^phpMyAdmin/)
The above searches for "phpMyAdmin" at the beginning of a line or string. That is what the ^ signifies.

Expand|Select|Wrap|Line Numbers
  1. $mech->title =~ 'phpMyAdmin')
The above looks like it is searching for the first instance of "phpMyAdmin" anywhere in a line or string. Although the use of single-quotes as regexp delimiters is unusual. It would be better written using standard delimiters / / if it is in fact a regexp and not some incorrect usage of the binding operator "=~".
Sep 19 '07 #5
Ah thanks for the help !

Now I am understand a bit more on how to use the syntax.

The problem is the site uses frames and it's somehow hard to adapt it for me.

In most cases the titles now look like this :

<title>phpMyAdmin 2.11.1-rc1 -
66.240.236.133</title>

What would be the best title syntax for it to work ?

Regards,

Vincent
Sep 19 '07 #6
KevinADC
4,059 Expert 2GB
The title tag hs nothing to do with perl. Use whatever title tag you think is most appropriate.
Sep 19 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Bob | last post by:
why is perl referred to as a CGI script and not php, php has the facility to execute backticked execute commands that enable the programmer to use operating system facilities as well ? why...
52
by: Olivier Scalbert | last post by:
Hello , What is the python way of doing this : perl -pi -e 's/string1/string2/' file ? Thanks Olivier
46
by: Reinhold Birkenfeld | last post by:
Hello, another Perl/Python question: the subject says it all. Perl is going to change dramatically to become a more powerful and easier to (read|write) language. Is Python taking a similar...
31
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is...
25
by: rbt | last post by:
Are there any plans in the near future to support PDF files in Python as thoroughly and completely as Perl does? http://cpan.uwinnipeg.ca/search?query=pdf&mode=dist I love Python's clean...
0
by: DukeNM | last post by:
Hi, I have been hearing about Perl 6 quite a bit. and have heard there have been quite some changes in the libraries, lot of rework, etc. But has the Perl syntax changed from Perl 5 to Perl 6. ...
0
by: Lee Sander | last post by:
hi, does python's re library have a similar capability of the perls regular expression to search for pattern that appears a variable number of times within the lower and upper bounds given? For...
223
by: Pilcrow | last post by:
Given that UNIX, including networking, is almost entirely coded in C, how come so many things are almost impossible in ordinary C? Examples: Network and internet access, access to UNIX...
1
by: swetna | last post by:
Hi, I am getting the following error when i try to run the perl code syntax error at new.pl line 26, near ") ## Call functions ## while" syntax error at new.pl line 32, near "}"...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.