The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.perl
From: jimdaw...@myrealbox.com (Jim Dawson)
Date: 13 Aug 2003 20:59:07 -0700
Local: Wed, Aug 13 2003 11:59 pm
Subject: Perl problem, possible bug?
I was writing a subroutine to extract fields from lines of text when I
ran into an issue. I have reproduced this error on Perl 5.8 on AIX, 5.8 on Linux and 5.6 on Windows. ############### CUT HERE ############### my @list = ("field1 field2 field3"); sub stripws($) } foreach (@list) { my $x = stripws(substr($_,10,10)); print "$x\n"; } ############### CUT HERE ############### Here 'field2' represents a variable-length field. I want to strip out Is there something I am missing here or is this a bug? Thanks in advance. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||