Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: WMCoolmon on April 24, 2005, 05:17:55 pm

Title: Eh?
Post by: WMCoolmon on April 24, 2005, 05:17:55 pm
Code: [Select]
*** sonic_1 ([email protected]) has joined channel #perl
can someone tell me whats wrong with this script?
#!/usr/bin/perl
for $x in 'ls --width=1';
do 'mv $x ~$x/Mailbox;chown $x.mail ~$x/Mailbox';
fi


:confused:
Title: Eh?
Post by: Taristin on April 24, 2005, 05:20:36 pm
umm. doesn't an fi ending mean you need an if begining?

Also... that whole thing just looks entirely wrong to me.  Granted I'm a rookie in Linux, but... we coverred that in class, and that seems completely wrong :p