Gossamer Forum
Home : General : Internet Technologies :

Re: [jai] Perl and PHP

Quote Reply
Re: [jai] Perl and PHP In reply to
What kind of stuff are you looking in a password manager? Does it need to be .htaccess, or a MySQL database one?

>>>Also, is PHP easier to learn than perl? <<<

It depends on what you want to do really. In Perl, its a lot easier to do stuff with regexes ... i.e;

Code:
$var =~ m,(.+?)/(.+?)/(.+?),;
my $var1 = $1;
my $var2 = $2;
my $var3 = $3;

.. but in PHP, I have yet to work out how to do this Tongue I'm just using this as an example, as its very practical.

However, in Perl, to get rid of leading/trailing spaces, you have to do;

Code:
$var =~ s/^\s//g;
$var =~ s/\s$//g;

... whilst in PHP, you could use;

Code:
$var = trim($var);

If possible, learn both languages.. they both have their ups, and also their downs :p

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread; hot thread Perl and PHP jai 10334 Aug 27, 2003, 4:25 AM
Thread; hot thread Re: [jai] Perl and PHP
Andy 10079 Aug 27, 2003, 4:44 AM
Thread; hot thread Re: [Andy] Perl and PHP
jai 10056 Aug 27, 2003, 6:26 AM
Thread; hot thread Re: [jai] Perl and PHP
Andy 10030 Aug 27, 2003, 6:34 AM
Thread; hot thread Re: [Andy] Perl and PHP
jai 10033 Aug 27, 2003, 6:52 AM
Thread; hot thread Re: [jai] Perl and PHP
Andy 10068 Aug 27, 2003, 6:55 AM
Thread; hot thread Re: [Andy] Perl and PHP
jai 10048 Aug 27, 2003, 7:03 AM
Post; hot thread Re: [jai] Perl and PHP
Andy 10007 Aug 27, 2003, 7:08 AM
Thread; hot thread Re: [jai] Perl and PHP
Alex 10010 Aug 27, 2003, 7:18 AM
Thread; hot thread Re: [Alex] Perl and PHP
Andy 10065 Aug 27, 2003, 7:23 AM
Thread; hot thread Re: [Andy] Perl and PHP
Wil 10004 Aug 27, 2003, 8:07 AM
Post; hot thread Re: [Wil] Perl and PHP
Andy 10004 Aug 27, 2003, 8:09 AM
Post; hot thread Re: [Alex] Perl and PHP
jai 10003 Aug 27, 2003, 7:30 AM