RegEx Question

2004-07-18 Thread Zysman, Roiy
Hi all, Is there a way to extract a filename out of a path string using just one RegEx and not using the split function ? For Example, I want to extract foo.txt from /my/long/path/foo.txt path string. Thanks.

Re: RegEx Question

2004-07-18 Thread Randy W. Sims
On 7/18/2004 4:14 AM, Zysman, Roiy wrote: Hi all, Is there a way to extract a filename out of a path string using just one RegEx and not using the split function ? For Example, I want to extract foo.txt from /my/long/path/foo.txt path string. use File::Basename; -or- use File::Spec; Both are core

Re: RegEx Question

2004-07-18 Thread Mike Dillinger
Hi Roy, --- Original Message From: Zysman, Roiy <[EMAIL PROTECTED]> Date: Sunday, July 18, 2004 at 01:14AM PDT ZR> Is there a way to extract a filename out of a path string using just one ZR> RegEx and not using the split function ? ZR> For Example, I want to extract foo.txt from /my/long/path/f

Another Perl datatype headache ( scalars $, hashes %, and arrays @ )

2004-07-18 Thread gohaku
Hi everyone, after writing perl scripts for about 3 years now, I still have trouble with the basic datatypes. I know that variables that start with '$' are scalars. This covers Hashes ($HASH{$key}), Arrays ( $_[0] ), and regular scalar values ( $foobar ); The code I write as well other's code is

[Solved]Re: Help a newbie to pick best version of Linux for Perl and perl/TK.

2004-07-18 Thread Marco Perl
thank you so much. regards, Marco. --- Harald Richard Ashburner <[EMAIL PROTECTED]> wrote: > Marco Perl said: > > > >Hi, Could you tell me what version of Linux is the > most stable and > > > >with most lib modules to do pearl and perl/TK? > > > Hi Marco, > Hmmm, how to start a flame war :) > >

Perl and XML::Simple

2004-07-18 Thread David Arnold
All I tried to run this: #! /usr/local/bin/perl -w # File: Responses.pl use strict; use warnings; # Import the SML::Simple module use XML::Simple; use Data::Dumper; # Turn the file into a has reference, using XML::Simples' "XMLin" # subroutine. We'll also turn on the 'forcearray' option, so th