extraction of filenames in a string

2002-03-26 Thread stephen . redding
Hi i have a string for example "directory/subdirectory/subsubdirectory/filename.gz" how do i extract the filename.gz part for testing, the number of subdirectories is not fixed? Stephen Redding BT Ignite Solutions Telephone - 0113 237 3393 Fax - 0113 244 1413 Email - [EMAIL

Oracle sequences

2002-04-10 Thread stephen . redding
Hi all I'm attempting to load an oracle database and am struggling with how to retrieve a sequence for a table. in SQL, the value is net_seq.nextval how do i use this in a perl script?? Thanks Stephen Redding BT Ignite Solutions Telephone - 0113 237 3393 Fax - 0113 244 1413 Email - [

problem with oracle sequences

2002-04-11 Thread stephen . redding
ute($id, $abc); } does anyone have any ideas?? Thanks Stephen Redding BT Ignite Solutions Telephone - 0113 237 3393 Fax - 0113 244 1413 Email - [EMAIL PROTECTED] British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ Registered in England no. 180 T

RE: How to get number of characters from var?

2002-05-07 Thread stephen . redding
use the length() function $length = length($string); Stephen Redding BT Ignite Solutions Telephone - 0113 237 3393 Fax - 0113 244 1413 Email - [EMAIL PROTECTED] http://www.technet.bt.com/sit/public/ British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ

ftp

2002-05-23 Thread stephen . redding
Hi Does any one know how to ftp a file using a perl script? are there modules etc that can be used? Thanks Stephen Redding BT Ignite Solutions Telephone - 0113 237 3393 Fax - 0113 244 1413 Email - [EMAIL PROTECTED] http://www.technet.bt.com/sit/public/ British Telecommunications plc

Mail::Mailer

2002-07-19 Thread stephen . redding
Hi I am having trouble locating the module Mail::Mailer on CPAN found loads of Mail modules but not the one i am looking for, am looking to send messages by smtp. does anyone know where the module is located Thanks Stephen Redding BT Ignite Solutions Telephone - 0113 237 3277 Fax - 0113 244

RE: Mail::Mailer

2002-07-19 Thread stephen . redding
Never mind i found it, moral of the story is look harder!! Stephen Redding BT Ignite Solutions Telephone - 0113 237 3277 Fax - 0113 244 1413 Email - [EMAIL PROTECTED] http://www.technet.bt.com/sit/public/ British Telecommunications plc Registered office: 81 Newgate Street London EC1A 7AJ

Net::SMTP

2002-07-19 Thread stephen . redding
trying to create a script to email a message via smtp, assume i have no required modules installed. Thanks Stephen Redding BT Ignite Solutions Telephone - 0113 237 3277 Fax - 0113 244 1413 Email - [EMAIL PROTECTED] http://www.technet.bt.com/sit/public/ British Telecommunications plc Registered

printing to the top of a file

2002-08-09 Thread stephen . redding
Hi I have a text file that i want to insert two lines to the top of. how do i do this? Stephen Redding BT Ignite Solutions Telephone - 0113 237 3277 Fax - 0113 244 1413 Email - [EMAIL PROTECTED] http://www.technet.bt.com/sit/public/ British Telecommunications plc Registered office: 81

RE: AW: how to make a regex for a ip address

2002-08-20 Thread stephen . redding
/^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[ 0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[ 0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9 ]{2}|[1-9]{1}[0-9]{1}|[0-9])$/ Stephen Redding BT Ignite