[Israel.pm] Quickie - Perl syntax

Madani, Srikanth, VF-DE Srikanth.Madani at vodafone.com
Wed Oct 6 03:51:37 PDT 2004


Hi all,

I have these statements:
#___________
$line =~ s/\s*//g; #Remove whitespace from $line. BTW, $line is "  targetDir =M:\VDD\Bin32 "
my @tdir_val = split /=/,$line;
#___________

a) How do I combine these two statements into one line?
b) Is there someway I can do it in one line _without_ modifying $line?

Cheers,
Srikanth Madani
I don't need a .sig - I'm going on vacation tomorrow!




More information about the Perl mailing list