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.
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
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
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
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 :)
>
>
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