mallah_rajesh has asked for the wisdom of the Perl Monks concerning the following question:
consider
$a = `find . -maxdepth 1 -print0`; @b = ?????? WHAT CODE ???? , $a ;
`find . -maxdepth 1 -print0`was just an example. I get the data from QmailRemote (sumthing similar) perl module. but the beast sends the data seperated by null character , i need to split em. Read "RESULTS" under
http://www.die.net/doc/linux/man/man8/qmail-remote.8.html
split /\0/, $adoes not do the trick. The find example was also meant for easy setup of the problem. Regds mallah print "JAPH";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: splitting/unpacking a string containing data sepearted by \0
by Anonymous Monk on Feb 12, 2004 at 21:47 UTC | |
|
Re: splitting/unpacking a string containing data sepearted by \0
by Fletch (Bishop) on Feb 12, 2004 at 22:01 UTC | |
by revdiablo (Prior) on Feb 12, 2004 at 22:20 UTC | |
by duff (Parson) on Feb 13, 2004 at 05:56 UTC | |
by Anonymous Monk on Feb 12, 2004 at 22:09 UTC |